pub struct Pkg<'a> { /* private fields */ }Implementations§
source§impl<'a> Pkg<'a>
impl<'a> Pkg<'a>
sourcepub fn relpath(&self) -> Utf8PathBuf
pub fn relpath(&self) -> Utf8PathBuf
Return the path of the package’s ebuild relative to the repository root.
sourcepub fn path(&self) -> Utf8PathBuf
pub fn path(&self) -> Utf8PathBuf
Return the absolute path of the package’s ebuild.
sourcepub fn metadata_raw(&self) -> Result<MetadataRaw>
pub fn metadata_raw(&self) -> Result<MetadataRaw>
Load raw metadata from the cache if valid, otherwise source it from the ebuild.
Trait Implementations§
source§impl Intersects<Cpn> for Pkg<'_>
impl Intersects<Cpn> for Pkg<'_>
fn intersects(&self, cpn: &Cpn) -> bool
source§impl Intersects<Cpv> for Pkg<'_>
impl Intersects<Cpv> for Pkg<'_>
fn intersects(&self, cpv: &Cpv) -> bool
source§impl Intersects<Dep> for Pkg<'_>
impl Intersects<Dep> for Pkg<'_>
fn intersects(&self, dep: &Dep) -> bool
source§impl Intersects<Pkg<'_>> for Cpn
impl Intersects<Pkg<'_>> for Cpn
fn intersects(&self, other: &Pkg<'_>) -> bool
source§impl Intersects<Pkg<'_>> for Cpv
impl Intersects<Pkg<'_>> for Cpv
fn intersects(&self, other: &Pkg<'_>) -> bool
source§impl Intersects<Pkg<'_>> for Dep
impl Intersects<Pkg<'_>> for Dep
fn intersects(&self, other: &Pkg<'_>) -> bool
source§impl Ord for Pkg<'_>
impl Ord for Pkg<'_>
source§impl PartialEq for Pkg<'_>
impl PartialEq for Pkg<'_>
source§impl PartialOrd for Pkg<'_>
impl PartialOrd for Pkg<'_>
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 moresource§impl<'a> RepoPackage for Pkg<'a>
impl<'a> RepoPackage for Pkg<'a>
source§impl<'a> Restriction<&'a Pkg<'a>> for Restrict
impl<'a> Restriction<&'a Pkg<'a>> for Restrict
source§impl<'a> Restriction<&'a Pkg<'a>> for Restrict
impl<'a> Restriction<&'a Pkg<'a>> for Restrict
source§impl<'a> Restriction<&'a Pkg<'a>> for Restrict
impl<'a> Restriction<&'a Pkg<'a>> for Restrict
source§impl TryFrom<&Pkg<'_>> for MetadataRaw
impl TryFrom<&Pkg<'_>> for MetadataRaw
impl Eq for Pkg<'_>
Auto Trait Implementations§
impl<'a> Freeze for Pkg<'a>
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§
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<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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more