pub struct PackageNames {
pub debian: &'static str,
pub fedora: &'static str,
pub arch: &'static str,
pub suse: &'static str,
pub generic: &'static str,
}Expand description
What one dependency is called on each family.
Fields§
§debian: &'static str§fedora: &'static str§arch: &'static str§suse: &'static str§generic: &'static strProse for an unidentified distribution, where a package name would be a guess but “OpenSSL development headers” is still actionable.
Implementations§
Source§impl PackageNames
impl PackageNames
Sourcepub const fn for_distro(&self, distro: LinuxDistro) -> Option<&'static str>
pub const fn for_distro(&self, distro: LinuxDistro) -> Option<&'static str>
The name for distro, or None when there is no name to give.
Trait Implementations§
Source§impl Clone for PackageNames
impl Clone for PackageNames
Source§fn clone(&self) -> PackageNames
fn clone(&self) -> PackageNames
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackageNames
impl Debug for PackageNames
Source§impl PartialEq for PackageNames
impl PartialEq for PackageNames
Source§fn eq(&self, other: &PackageNames) -> bool
fn eq(&self, other: &PackageNames) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PackageNames
impl Eq for PackageNames
impl StructuralPartialEq for PackageNames
Auto Trait Implementations§
impl Freeze for PackageNames
impl RefUnwindSafe for PackageNames
impl Send for PackageNames
impl Sync for PackageNames
impl Unpin for PackageNames
impl UnsafeUnpin for PackageNames
impl UnwindSafe for PackageNames
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