pub struct Pkg<'a> { /* private fields */ }Implementations
sourceimpl<'a> Pkg<'a>
impl<'a> Pkg<'a>
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Return a package’s description.
sourcepub fn properties(&self) -> Option<&DepSet<String>>
pub fn properties(&self) -> Option<&DepSet<String>>
Return a package’s PROPERTIES.
sourcepub fn required_use(&self) -> Option<&DepSet<String>>
pub fn required_use(&self) -> Option<&DepSet<String>>
Return a package’s REQUIRED_USE.
sourcepub fn defined_phases(&self) -> &HashSet<String>
pub fn defined_phases(&self) -> &HashSet<String>
Return a package’s defined phases
sourcepub fn inherit(&self) -> &IndexSet<String>
pub fn inherit(&self) -> &IndexSet<String>
Return the ordered set of directly inherited eclasses for a package.
sourcepub fn inherited(&self) -> &IndexSet<String>
pub fn inherited(&self) -> &IndexSet<String>
Return the ordered set of inherited eclasses for a package.
sourcepub fn maintainers(&self) -> &[Maintainer]
pub fn maintainers(&self) -> &[Maintainer]
Return a package’s maintainers.
sourcepub fn long_description(&self) -> Option<&str>
pub fn long_description(&self) -> Option<&str>
Return a package’s long description.
Trait Implementations
sourceimpl Ord for Pkg<'_>
impl Ord for Pkg<'_>
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Pkg<'_>> for Pkg<'_>
impl PartialOrd<Pkg<'_>> for Pkg<'_>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
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 moresourceimpl<'a> Restriction<&'a Pkg<'a>> for Restrict
impl<'a> Restriction<&'a Pkg<'a>> for Restrict
sourceimpl<'a> Restriction<&'a Pkg<'a>> for Restrict
impl<'a> Restriction<&'a Pkg<'a>> for Restrict
impl Eq for Pkg<'_>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Pkg<'a>
impl<'a> Send for Pkg<'a>
impl<'a> Sync for Pkg<'a>
impl<'a> Unpin for Pkg<'a>
impl<'a> !UnwindSafe for Pkg<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.