pub struct UnitDep {
pub unit: Unit,
pub unit_for: UnitFor,
pub extern_crate_name: InternedString,
pub dep_name: Option<InternedString>,
pub public: bool,
pub noprelude: bool,
}Expand description
A unit dependency.
Fields§
§unit: UnitThe dependency unit.
unit_for: UnitForThe purpose of this dependency (a dependency for a test, or a build script, etc.). Do not use this after the unit graph has been built.
extern_crate_name: InternedStringThe name the parent uses to refer to this dependency.
dep_name: Option<InternedString>The dependency name as written in the manifest (including a rename).
None means this edge does not carry a manifest dep name. For example,
std edges in build-std or synthetic edges for build script executions.
When None, the package name is typically used by callers as a fallback.
This is mainly for Cargo-synthesized outputs
(artifact env vars and CARGO_DEP_* metadata env)
and is distinct from extern_crate_name.
public: boolWhether or not this is a public dependency.
noprelude: boolIf true, the dependency should not be added to Rust’s prelude.
Trait Implementations§
Source§impl Ord for UnitDep
impl Ord for UnitDep
Source§impl PartialOrd for UnitDep
impl PartialOrd for UnitDep
impl Eq for UnitDep
impl StructuralPartialEq for UnitDep
Auto Trait Implementations§
impl Freeze for UnitDep
impl RefUnwindSafe for UnitDep
impl !Send for UnitDep
impl !Sync for UnitDep
impl Unpin for UnitDep
impl UnwindSafe for UnitDep
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§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>
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>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§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>,
§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: 88 bytes