Struct devicemapper::Sectors [−]
pub struct Sectors(pub u64);
A separate type to store counts and offsets expressed in 512-byte sectors.
Methods
impl Sectors[src]
impl Sectorspub fn bytes(self) -> Bytes[src]
pub fn bytes(self) -> BytesThe number of bytes in these sectors.
pub fn metablocks(self) -> MetaBlocks[src]
pub fn metablocks(self) -> MetaBlocksThe number of whole metablocks contained in these sectors.
pub fn checked_add(&self, other: Sectors) -> Option<Sectors>[src]
pub fn checked_add(&self, other: Sectors) -> Option<Sectors>Add two items of type $T, return None if overflow.
Methods from Deref<Target = u64>
Trait Implementations
impl Clone for Sectors
impl Clone for Sectorsfn clone(&self) -> Sectors
fn clone(&self) -> SectorsReturns 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 Copy for Sectors
impl Copy for Sectorsimpl Default for Sectors
impl Default for Sectorsimpl Eq for Sectors
impl Eq for Sectorsimpl Ord for Sectors
impl Ord for Sectorsfn cmp(&self, other: &Sectors) -> Ordering
fn cmp(&self, other: &Sectors) -> 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 PartialEq for Sectors
impl PartialEq for Sectorsfn eq(&self, other: &Sectors) -> bool
fn eq(&self, other: &Sectors) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Sectors) -> bool
fn ne(&self, other: &Sectors) -> boolThis method tests for !=.
impl PartialOrd for Sectors
impl PartialOrd for Sectorsfn partial_cmp(&self, other: &Sectors) -> Option<Ordering>
fn partial_cmp(&self, other: &Sectors) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Sectors) -> bool
fn lt(&self, other: &Sectors) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Sectors) -> bool
fn le(&self, other: &Sectors) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Sectors) -> bool
fn gt(&self, other: &Sectors) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Sectors) -> bool
fn ge(&self, other: &Sectors) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Add<Sectors> for Sectors
impl Add<Sectors> for Sectorstype Output = Sectors
The resulting type after applying the + operator.
fn add(self, rhs: Self) -> Sectors
fn add(self, rhs: Self) -> SectorsPerforms the + operation.
impl AddAssign<Sectors> for Sectors
impl AddAssign<Sectors> for Sectorsfn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)Performs the += operation.
impl Deref for Sectors
impl Deref for Sectorstype Target = u64
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
fn deref(&self) -> &Self::TargetDereferences the value.
impl From<u64> for Sectors
impl From<u64> for Sectorsimpl From<Sectors> for u64
impl From<Sectors> for u64impl Sub<Sectors> for Sectors
impl Sub<Sectors> for Sectorstype Output = Sectors
The resulting type after applying the - operator.
fn sub(self, rhs: Self) -> Sectors
fn sub(self, rhs: Self) -> SectorsPerforms the - operation.
impl SubAssign<Sectors> for Sectors
impl SubAssign<Sectors> for Sectorsfn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)Performs the -= operation.
impl Div<Sectors> for Sectors[src]
impl Div<Sectors> for Sectorstype Output = u64
The resulting type after applying the / operator.
fn div(self, rhs: Sectors) -> u64[src]
fn div(self, rhs: Sectors) -> u64Performs the / operation.
impl Serialize for Sectors[src]
impl Serialize for Sectorsfn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, [src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer, Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Sectors[src]
impl<'de> Deserialize<'de> for Sectorsfn deserialize<D>(deserializer: D) -> Result<Sectors, D::Error> where
D: Deserializer<'de>, [src]
fn deserialize<D>(deserializer: D) -> Result<Sectors, D::Error> where
D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
impl Debug for Sectors[src]
impl Debug for Sectorsfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Sum for Sectors[src]
impl Sum for Sectorsfn sum<I: Iterator<Item = Sectors>>(iter: I) -> Sectors[src]
fn sum<I: Iterator<Item = Sectors>>(iter: I) -> SectorsMethod which takes an iterator and generates Self from the elements by "summing up" the items. Read more
impl Div<u64> for Sectors[src]
impl Div<u64> for Sectorstype Output = Sectors
The resulting type after applying the / operator.
fn div(self, rhs: u64) -> Sectors[src]
fn div(self, rhs: u64) -> SectorsPerforms the / operation.
impl Div<u32> for Sectors[src]
impl Div<u32> for Sectorstype Output = Sectors
The resulting type after applying the / operator.
fn div(self, rhs: u32) -> Sectors[src]
fn div(self, rhs: u32) -> SectorsPerforms the / operation.
impl Div<u16> for Sectors[src]
impl Div<u16> for Sectorstype Output = Sectors
The resulting type after applying the / operator.
fn div(self, rhs: u16) -> Sectors[src]
fn div(self, rhs: u16) -> SectorsPerforms the / operation.
impl Div<u8> for Sectors[src]
impl Div<u8> for Sectorstype Output = Sectors
The resulting type after applying the / operator.
fn div(self, rhs: u8) -> Sectors[src]
fn div(self, rhs: u8) -> SectorsPerforms the / operation.
impl Div<usize> for Sectors[src]
impl Div<usize> for Sectorstype Output = Sectors
The resulting type after applying the / operator.
fn div(self, rhs: usize) -> Sectors[src]
fn div(self, rhs: usize) -> SectorsPerforms the / operation.
impl Mul<u64> for Sectors[src]
impl Mul<u64> for Sectorstype Output = Sectors
The resulting type after applying the * operator.
fn mul(self, rhs: u64) -> Sectors[src]
fn mul(self, rhs: u64) -> SectorsPerforms the * operation.
impl Mul<Sectors> for u64[src]
impl Mul<Sectors> for u64type Output = Sectors
The resulting type after applying the * operator.
fn mul(self, rhs: Sectors) -> Sectors[src]
fn mul(self, rhs: Sectors) -> SectorsPerforms the * operation.
impl Mul<u32> for Sectors[src]
impl Mul<u32> for Sectorstype Output = Sectors
The resulting type after applying the * operator.
fn mul(self, rhs: u32) -> Sectors[src]
fn mul(self, rhs: u32) -> SectorsPerforms the * operation.
impl Mul<Sectors> for u32[src]
impl Mul<Sectors> for u32type Output = Sectors
The resulting type after applying the * operator.
fn mul(self, rhs: Sectors) -> Sectors[src]
fn mul(self, rhs: Sectors) -> SectorsPerforms the * operation.
impl Mul<u16> for Sectors[src]
impl Mul<u16> for Sectorstype Output = Sectors
The resulting type after applying the * operator.
fn mul(self, rhs: u16) -> Sectors[src]
fn mul(self, rhs: u16) -> SectorsPerforms the * operation.
impl Mul<Sectors> for u16[src]
impl Mul<Sectors> for u16type Output = Sectors
The resulting type after applying the * operator.
fn mul(self, rhs: Sectors) -> Sectors[src]
fn mul(self, rhs: Sectors) -> SectorsPerforms the * operation.
impl Mul<u8> for Sectors[src]
impl Mul<u8> for Sectorstype Output = Sectors
The resulting type after applying the * operator.
fn mul(self, rhs: u8) -> Sectors[src]
fn mul(self, rhs: u8) -> SectorsPerforms the * operation.
impl Mul<Sectors> for u8[src]
impl Mul<Sectors> for u8type Output = Sectors
The resulting type after applying the * operator.
fn mul(self, rhs: Sectors) -> Sectors[src]
fn mul(self, rhs: Sectors) -> SectorsPerforms the * operation.
impl Mul<usize> for Sectors[src]
impl Mul<usize> for Sectorstype Output = Sectors
The resulting type after applying the * operator.
fn mul(self, rhs: usize) -> Sectors[src]
fn mul(self, rhs: usize) -> SectorsPerforms the * operation.
impl Mul<Sectors> for usize[src]
impl Mul<Sectors> for usizetype Output = Sectors
The resulting type after applying the * operator.
fn mul(self, rhs: Sectors) -> Sectors[src]
fn mul(self, rhs: Sectors) -> SectorsPerforms the * operation.
impl Rem<u64> for Sectors[src]
impl Rem<u64> for Sectorstype Output = Sectors
The resulting type after applying the % operator.
fn rem(self, rhs: u64) -> Sectors[src]
fn rem(self, rhs: u64) -> SectorsPerforms the % operation.
impl Rem<u32> for Sectors[src]
impl Rem<u32> for Sectorstype Output = Sectors
The resulting type after applying the % operator.
fn rem(self, rhs: u32) -> Sectors[src]
fn rem(self, rhs: u32) -> SectorsPerforms the % operation.
impl Rem<u16> for Sectors[src]
impl Rem<u16> for Sectorstype Output = Sectors
The resulting type after applying the % operator.
fn rem(self, rhs: u16) -> Sectors[src]
fn rem(self, rhs: u16) -> SectorsPerforms the % operation.
impl Rem<u8> for Sectors[src]
impl Rem<u8> for Sectorstype Output = Sectors
The resulting type after applying the % operator.
fn rem(self, rhs: u8) -> Sectors[src]
fn rem(self, rhs: u8) -> SectorsPerforms the % operation.
impl Rem<usize> for Sectors[src]
impl Rem<usize> for Sectorstype Output = Sectors
The resulting type after applying the % operator.
fn rem(self, rhs: usize) -> Sectors[src]
fn rem(self, rhs: usize) -> SectorsPerforms the % operation.
impl Rem<Sectors> for Sectors[src]
impl Rem<Sectors> for Sectorstype Output = Sectors
The resulting type after applying the % operator.
fn rem(self, rhs: Sectors) -> Sectors[src]
fn rem(self, rhs: Sectors) -> SectorsPerforms the % operation.
impl Display for Sectors[src]
impl Display for Sectors