Struct cargo::core::dependency::Inner
source · struct Inner {Show 14 fields
name: InternedString,
source_id: SourceId,
registry_id: Option<SourceId>,
req: OptVersionReq,
specified_req: bool,
kind: DepKind,
only_match_name: bool,
explicit_name_in_toml: Option<InternedString>,
optional: bool,
public: bool,
default_features: bool,
features: Vec<InternedString>,
artifact: Option<Artifact>,
platform: Option<Platform>,
}Expand description
The data underlying a Dependency.
Fields§
§name: InternedString§source_id: SourceId§registry_id: Option<SourceId>Source ID for the registry as specified in the manifest.
This will be None if it is not specified (crates.io dependency).
This is different from source_id for example when both a path and
registry is specified. Or in the case of a crates.io dependency,
source_id will be crates.io and this will be None.
req: OptVersionReq§specified_req: bool§kind: DepKind§only_match_name: bool§explicit_name_in_toml: Option<InternedString>§optional: bool§public: bool§default_features: bool§features: Vec<InternedString>§artifact: Option<Artifact>§platform: Option<Platform>Trait Implementations§
source§impl PartialEq<Inner> for Inner
impl PartialEq<Inner> for Inner
impl Eq for Inner
impl StructuralEq for Inner
impl StructuralPartialEq for Inner
Auto Trait Implementations§
impl RefUnwindSafe for Inner
impl !Send for Inner
impl !Sync for Inner
impl Unpin for Inner
impl UnwindSafe for Inner
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 248 bytes