pub struct Package<T> {
pub pkg: T,
pub make: bool,
pub target: bool,
}
Expand description
Wrapper around a package for extra metadata.
Fields§
§pkg: T
The underlying package
make: bool
If the package is only needed to build the targets.
target: bool
If the package is a target.
Trait Implementations§
Source§impl<T: Ord> Ord for Package<T>
impl<T: Ord> Ord for Package<T>
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<T: PartialOrd> PartialOrd for Package<T>
impl<T: PartialOrd> PartialOrd for Package<T>
impl<T: Eq> Eq for Package<T>
impl<T> StructuralPartialEq for Package<T>
Auto Trait Implementations§
impl<T> Freeze for Package<T>where
T: Freeze,
impl<T> RefUnwindSafe for Package<T>where
T: RefUnwindSafe,
impl<T> Send for Package<T>where
T: Send,
impl<T> Sync for Package<T>where
T: Sync,
impl<T> Unpin for Package<T>where
T: Unpin,
impl<T> UnwindSafe for Package<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.