Struct devicemapper::Sectors
source · pub struct Sectors(pub u64);Expand description
A type for sectors
Tuple Fields§
§0: u64Implementations§
source§impl Sectors
impl Sectors
sourcepub fn checked_add(&self, other: Sectors) -> Option<Sectors>
pub fn checked_add(&self, other: Sectors) -> Option<Sectors>
Add two items of the same type, return None if overflow.
source§impl Sectors
impl Sectors
sourcepub fn metablocks(self) -> MetaBlocks
pub fn metablocks(self) -> MetaBlocks
The number of whole metablocks contained in these sectors.
Methods from Deref<Target = u64>§
Trait Implementations§
source§impl AddAssign<Sectors> for Sectors
impl AddAssign<Sectors> for Sectors
source§fn add_assign(&mut self, rhs: Sectors)
fn add_assign(&mut self, rhs: Sectors)
Performs the
+= operation. Read moresource§impl<'de> Deserialize<'de> for Sectors
impl<'de> Deserialize<'de> for Sectors
source§fn deserialize<D>(deserializer: D) -> Result<Sectors, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Sectors, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for Sectors
impl Ord for Sectors
source§impl PartialEq<Sectors> for Sectors
impl PartialEq<Sectors> for Sectors
source§impl PartialOrd<Sectors> for Sectors
impl PartialOrd<Sectors> for Sectors
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl SubAssign<Sectors> for Sectors
impl SubAssign<Sectors> for Sectors
source§fn sub_assign(&mut self, rhs: Sectors)
fn sub_assign(&mut self, rhs: Sectors)
Performs the
-= operation. Read more