Struct mtree::Device [−][src]
pub struct Device {
pub format: Format,
pub major: Vec<u8>,
pub minor: Vec<u8>,
pub subunit: Option<Vec<u8>>,
}A unix device.
The parsing for this could probably do with some work.
Fields
format: Format
The device format.
major: Vec<u8>
The device major identifier.
minor: Vec<u8>
The device minor identifier.
subunit: Option<Vec<u8>>
The device subunit identifier, if applicable.
Trait Implementations
impl Debug for Device[src]
impl Debug for Devicefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Device[src]
impl Clone for Devicefn clone(&self) -> Device[src]
fn clone(&self) -> DeviceReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for Device[src]
impl PartialEq for Devicefn eq(&self, other: &Device) -> bool[src]
fn eq(&self, other: &Device) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Device) -> bool[src]
fn ne(&self, other: &Device) -> boolThis method tests for !=.
impl Eq for Device[src]
impl Eq for Deviceimpl Ord for Device[src]
impl Ord for Devicefn cmp(&self, other: &Device) -> Ordering[src]
fn cmp(&self, other: &Device) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl PartialOrd for Device[src]
impl PartialOrd for Devicefn partial_cmp(&self, other: &Device) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Device) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Device) -> bool[src]
fn lt(&self, other: &Device) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Device) -> bool[src]
fn le(&self, other: &Device) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Device) -> bool[src]
fn gt(&self, other: &Device) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Device) -> bool[src]
fn ge(&self, other: &Device) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Hash for Device[src]
impl Hash for Device