pub enum Base {
Aur(AurBase),
Pkgbuild(PkgbuildPackages),
}
Expand description
A package base. This descripes packages that should be built then installed.
Variants§
Implementations§
Source§impl Base
impl Base
Sourcepub fn package_base(&self) -> &str
pub fn package_base(&self) -> &str
Gets the package base of base.
Sourcepub fn package_count(&self) -> usize
pub fn package_count(&self) -> usize
Ammount of packages in this base.
Sourcepub fn write_base<'a, W: Write, I: IntoIterator<Item = &'a str>>(
writer: W,
pkgbase: &str,
ver: &str,
pkgs: I,
) -> Result
pub fn write_base<'a, W: Write, I: IntoIterator<Item = &'a str>>( writer: W, pkgbase: &str, ver: &str, pkgs: I, ) -> Result
Formats a base into the format: pkgname-ver or, if there are multiple packages: pkgbase-ver (pkg1 pkg2 pkg2)
Sourcepub fn base_is_pkg<'a, I: IntoIterator<Item = &'a str>>(
pkgbase: &str,
pkgs: I,
) -> bool
pub fn base_is_pkg<'a, I: IntoIterator<Item = &'a str>>( pkgbase: &str, pkgs: I, ) -> bool
True if the package base contains a single package with the same name as the pkgbase.
Trait Implementations§
Source§impl Ord for Base
impl Ord for Base
Source§impl PartialOrd for Base
impl PartialOrd for Base
impl Eq for Base
impl StructuralPartialEq for Base
Auto Trait Implementations§
impl Freeze for Base
impl RefUnwindSafe for Base
impl Send for Base
impl Sync for Base
impl Unpin for Base
impl UnwindSafe for Base
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.