#[non_exhaustive]pub enum PkgType {
Debug,
Package,
Source,
Split,
}
Expand description
The type of a package
§Examples
use std::str::FromStr;
use alpm_types::PkgType;
// create PkgType from str
assert_eq!(PkgType::from_str("pkg"), Ok(PkgType::Package));
// format as String
assert_eq!("debug", format!("{}", PkgType::Debug));
assert_eq!("pkg", format!("{}", PkgType::Package));
assert_eq!("src", format!("{}", PkgType::Source));
assert_eq!("split", format!("{}", PkgType::Split));
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Debug
a debug package
Package
a single (non-split) package
Source
a source-only package
Split
one split package out of a set of several
Trait Implementations§
impl Copy for PkgType
impl Eq for PkgType
impl StructuralPartialEq for PkgType
Auto Trait Implementations§
impl Freeze for PkgType
impl RefUnwindSafe for PkgType
impl Send for PkgType
impl Sync for PkgType
impl Unpin for PkgType
impl UnwindSafe for PkgType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)