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>If Some, the name of the dependency if renamed in toml.
It’s particularly interesting to artifact dependencies which rely on it
for naming their environment variables. Note that the extern_crate_name
cannot be used for this as it also may be the build target itself,
which isn’t always the renamed dependency 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 PartialEq<UnitDep> for UnitDep
impl PartialEq<UnitDep> for UnitDep
source§impl PartialOrd<UnitDep> for UnitDep
impl PartialOrd<UnitDep> for UnitDep
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for UnitDep
impl StructuralEq for UnitDep
impl StructuralPartialEq for UnitDep
Auto Trait Implementations§
impl RefUnwindSafe for UnitDep
impl !Send for UnitDep
impl !Sync for UnitDep
impl Unpin for UnitDep
impl UnwindSafe for UnitDep
Blanket Implementations§
source§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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§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.