pub struct UnitDep {
pub unit: Unit,
pub unit_for: UnitFor,
pub extern_crate_name: InternedString,
pub public: bool,
pub noprelude: bool,
}
Expand description
A unit dependency.
Fields
unit: Unit
The dependency unit.
unit_for: UnitFor
The 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: InternedString
The name the parent uses to refer to this dependency.
public: bool
Whether or not this is a public dependency.
noprelude: bool
If true
, the dependency should not be added to Rust’s prelude.
Trait Implementations
sourceimpl Ord for UnitDep
impl Ord for UnitDep
sourceimpl PartialOrd<UnitDep> for UnitDep
impl PartialOrd<UnitDep> for UnitDep
sourcefn partial_cmp(&self, other: &UnitDep) -> Option<Ordering>
fn partial_cmp(&self, other: &UnitDep) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more