[][src]Struct lfs_core::DeviceId

pub struct DeviceId {
    pub major: u32,
    pub minor: u32,
}

Id of a device, as can be found in MetadataExt.dev().

Note: I have absolutely no idea of the size of those parts and whether the u32 are the right containers

Fields

major: u32minor: u32

Implementations

impl DeviceId[src]

pub fn new(major: u32, minor: u32) -> Self[src]

Trait Implementations

impl Clone for DeviceId[src]

impl Copy for DeviceId[src]

impl Debug for DeviceId[src]

impl From<u64> for DeviceId[src]

impl FromStr for DeviceId[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self>[src]

this code is based on man 5 proc and my stochastic interpretation

impl PartialEq<DeviceId> for DeviceId[src]

impl StructuralPartialEq for DeviceId[src]

Auto Trait Implementations

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.