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 Device
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Device
[src]
impl Clone for Device
fn clone(&self) -> Device
[src]
fn clone(&self) -> Device
Returns 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 Device
fn eq(&self, other: &Device) -> bool
[src]
fn eq(&self, other: &Device) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Device
[src]
impl Eq for Device
impl Ord for Device
[src]
impl Ord for Device
fn cmp(&self, other: &Device) -> Ordering
[src]
fn cmp(&self, other: &Device) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for Device
[src]
impl PartialOrd for Device
fn 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) -> bool
This 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) -> bool
This 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) -> bool
This 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) -> bool
This 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