pub struct Repo { /* private fields */ }Implementations
sourceimpl Repo
impl Repo
pub fn config(&self) -> &Config
sourcepub fn masters(&self) -> Vec<Arc<Repo>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn masters(&self) -> Vec<Arc<Repo>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Return the list of inherited repos.
sourcepub fn trees(&self) -> Vec<Arc<Repo>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn trees(&self) -> Vec<Arc<Repo>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Return a repo’s inheritance list including itself.
sourcepub fn eclasses(&self) -> &HashMap<String, Utf8PathBuf>
pub fn eclasses(&self) -> &HashMap<String, Utf8PathBuf>
Return the mapping of inherited eclass names to file paths.
sourcepub fn category_dirs(&self) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn category_dirs(&self) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Return a repo’s category dirs from the filesystem.
pub fn name(&self) -> &str
pub fn arches(&self) -> &IndexSet<String>
pub fn iter(&self) -> PkgIter<'_>ⓘNotable traits for PkgIter<'a>impl<'a> Iterator for PkgIter<'a> type Item = Pkg<'a>;
pub fn iter_restrict<T: Into<Restrict>>(&self, val: T) -> RestrictPkgIter<'_>ⓘNotable traits for RestrictPkgIter<'a>impl<'a> Iterator for RestrictPkgIter<'a> type Item = Pkg<'a>;
Trait Implementations
sourceimpl<'a> IntoIterator for &'a Repo
impl<'a> IntoIterator for &'a Repo
sourceimpl Ord for Repo
impl Ord for Repo
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<Repo> for Repo
impl PartialOrd<Repo> for Repo
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 Repository for Repo
impl Repository for Repo
fn categories(&self) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
fn packages(&self, cat: &str) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
fn versions(&self, cat: &str, pkg: &str) -> Vec<String>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
fn id(&self) -> &str
fn priority(&self) -> i32
fn path(&self) -> &Utf8Path
fn sync(&self) -> Result<()>
fn len(&self) -> usize
fn is_empty(&self) -> bool
impl Eq for Repo
Auto Trait Implementations
impl !RefUnwindSafe for Repo
impl Send for Repo
impl Sync for Repo
impl Unpin for Repo
impl !UnwindSafe for Repo
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.