pub struct CargoParser;Expand description
Parser for Cargo.toml manifests implementing the deps-core traits.
Trait Implementations§
Source§impl ManifestParser for CargoParser
impl ManifestParser for CargoParser
Source§type Dependency = ParsedDependency
type Dependency = ParsedDependency
Parsed dependency type for this ecosystem.
Source§type ParseResult = ParseResult
type ParseResult = ParseResult
Parse result containing dependencies and optional workspace information.
Source§fn parse(
&self,
content: &str,
doc_uri: &Uri,
) -> Result<<CargoParser as ManifestParser>::ParseResult, DepsError>
fn parse( &self, content: &str, doc_uri: &Uri, ) -> Result<<CargoParser as ManifestParser>::ParseResult, DepsError>
Parses a manifest file and extracts all dependencies with positions. Read more
Auto Trait Implementations§
impl Freeze for CargoParser
impl RefUnwindSafe for CargoParser
impl Send for CargoParser
impl Sync for CargoParser
impl Unpin for CargoParser
impl UnwindSafe for CargoParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more