[][src]Enum libparted_sys::PedUnit

#[repr(u32)]
#[non_exhaustive]
pub enum PedUnit {
    PED_UNIT_SECTOR,
    PED_UNIT_BYTE,
    PED_UNIT_KILOBYTE,
    PED_UNIT_MEGABYTE,
    PED_UNIT_GIGABYTE,
    PED_UNIT_TERABYTE,
    PED_UNIT_COMPACT,
    PED_UNIT_CYLINDER,
    PED_UNIT_CHS,
    PED_UNIT_PERCENT,
    PED_UNIT_KIBIBYTE,
    PED_UNIT_MEBIBYTE,
    PED_UNIT_GIBIBYTE,
    PED_UNIT_TEBIBYTE,
}

Variants (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.
PED_UNIT_SECTOR
PED_UNIT_BYTE
PED_UNIT_KILOBYTE
PED_UNIT_MEGABYTE
PED_UNIT_GIGABYTE
PED_UNIT_TERABYTE
PED_UNIT_COMPACT
PED_UNIT_CYLINDER
PED_UNIT_CHS
PED_UNIT_PERCENT
PED_UNIT_KIBIBYTE
PED_UNIT_MEBIBYTE
PED_UNIT_GIBIBYTE
PED_UNIT_TEBIBYTE

Trait Implementations

impl Clone for PedUnit[src]

impl Copy for PedUnit[src]

impl Debug for PedUnit[src]

impl Eq for PedUnit[src]

impl Hash for PedUnit[src]

impl PartialEq<PedUnit> for PedUnit[src]

impl StructuralEq for PedUnit[src]

impl StructuralPartialEq for PedUnit[src]

Auto Trait Implementations

impl RefUnwindSafe for PedUnit

impl Send for PedUnit

impl Sync for PedUnit

impl Unpin for PedUnit

impl UnwindSafe for PedUnit

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.