[][src]Struct devicemapper::Sectors

pub struct Sectors(pub u64);

A type for $T

Methods

impl Sectors[src]

pub fn checked_add(&self, other: Sectors) -> Option<Sectors>[src]

Add two items of type $T, return None if overflow.

impl Sectors[src]

pub fn bytes(self) -> Bytes[src]

The number of bytes in these sectors.

pub fn metablocks(self) -> MetaBlocks[src]

The number of whole metablocks contained in these sectors.

Trait Implementations

impl Eq for Sectors[src]

impl Ord for Sectors[src]

fn max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.21.0[src]

Compares and returns the minimum of two values. Read more

fn clamp(self, min: Self, max: Self) -> Self[src]

🔬 This is a nightly-only experimental API. (clamp)

Restrict a value to a certain interval. Read more

impl PartialEq<Sectors> for Sectors[src]

impl Copy for Sectors[src]

impl Clone for Sectors[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialOrd<Sectors> for Sectors[src]

impl From<u64> for Sectors[src]

impl Default for Sectors[src]

impl Deref for Sectors[src]

type Target = u64

The resulting type after dereferencing.

impl Debug for Sectors[src]

impl Display for Sectors[src]

impl Sub<Sectors> for Sectors[src]

type Output = Sectors

The resulting type after applying the - operator.

impl Add<Sectors> for Sectors[src]

type Output = Sectors

The resulting type after applying the + operator.

impl Mul<u64> for Sectors[src]

type Output = Sectors

The resulting type after applying the * operator.

impl Mul<Sectors> for u64[src]

type Output = Sectors

The resulting type after applying the * operator.

impl Mul<u32> for Sectors[src]

type Output = Sectors

The resulting type after applying the * operator.

impl Mul<Sectors> for u32[src]

type Output = Sectors

The resulting type after applying the * operator.

impl Mul<u16> for Sectors[src]

type Output = Sectors

The resulting type after applying the * operator.

impl Mul<Sectors> for u16[src]

type Output = Sectors

The resulting type after applying the * operator.

impl Mul<u8> for Sectors[src]

type Output = Sectors

The resulting type after applying the * operator.

impl Mul<Sectors> for u8[src]

type Output = Sectors

The resulting type after applying the * operator.

impl Mul<usize> for Sectors[src]

type Output = Sectors

The resulting type after applying the * operator.

impl Mul<Sectors> for usize[src]

type Output = Sectors

The resulting type after applying the * operator.

impl Div<u64> for Sectors[src]

type Output = Sectors

The resulting type after applying the / operator.

impl Div<u32> for Sectors[src]

type Output = Sectors

The resulting type after applying the / operator.

impl Div<u16> for Sectors[src]

type Output = Sectors

The resulting type after applying the / operator.

impl Div<u8> for Sectors[src]

type Output = Sectors

The resulting type after applying the / operator.

impl Div<usize> for Sectors[src]

type Output = Sectors

The resulting type after applying the / operator.

impl Div<Sectors> for Sectors[src]

type Output = u64

The resulting type after applying the / operator.

impl Rem<u64> for Sectors[src]

type Output = Sectors

The resulting type after applying the % operator.

impl Rem<u32> for Sectors[src]

type Output = Sectors

The resulting type after applying the % operator.

impl Rem<u16> for Sectors[src]

type Output = Sectors

The resulting type after applying the % operator.

impl Rem<u8> for Sectors[src]

type Output = Sectors

The resulting type after applying the % operator.

impl Rem<usize> for Sectors[src]

type Output = Sectors

The resulting type after applying the % operator.

impl Rem<Sectors> for Sectors[src]

type Output = Sectors

The resulting type after applying the % operator.

impl AddAssign<Sectors> for Sectors[src]

impl SubAssign<Sectors> for Sectors[src]

impl Sum<Sectors> for Sectors[src]

impl Serialize for Sectors[src]

impl<'de> Deserialize<'de> for Sectors[src]

Auto Trait Implementations

impl Send for Sectors

impl Sync for Sectors

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]