pub struct UnitDep<'a> {
pub unit: Unit<'a>,
pub unit_for: UnitFor,
pub extern_crate_name: InternedString,
pub public: bool,
pub noprelude: bool,
}Expand description
A unit dependency.
Fields§
§unit: Unit<'a>The dependency unit.
unit_for: UnitForThe purpose of this dependency (a dependency for a test, or a build script, etc.).
extern_crate_name: InternedStringThe name the parent uses to refer to this dependency.
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<'a> Ord for UnitDep<'a>
impl<'a> Ord for UnitDep<'a>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialOrd for UnitDep<'a>
impl<'a> PartialOrd for UnitDep<'a>
impl<'a> Eq for UnitDep<'a>
impl<'a> StructuralPartialEq for UnitDep<'a>
Auto Trait Implementations§
impl<'a> Freeze for UnitDep<'a>
impl<'a> RefUnwindSafe for UnitDep<'a>
impl<'a> !Send for UnitDep<'a>
impl<'a> !Sync for UnitDep<'a>
impl<'a> Unpin for UnitDep<'a>
impl<'a> UnsafeUnpin for UnitDep<'a>
impl<'a> UnwindSafe for UnitDep<'a>
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