[][src]Struct devicemapper::MetaBlocks

pub struct MetaBlocks(pub u64);

A type for $T

Methods

impl MetaBlocks[src]

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

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

impl MetaBlocks[src]

pub fn sectors(self) -> Sectors[src]

Return the number of Sectors in the MetaBlocks.

Trait Implementations

impl Eq for MetaBlocks[src]

impl Ord for MetaBlocks[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<MetaBlocks> for MetaBlocks[src]

impl Copy for MetaBlocks[src]

impl Clone for MetaBlocks[src]

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

Performs copy-assignment from source. Read more

impl PartialOrd<MetaBlocks> for MetaBlocks[src]

impl From<u64> for MetaBlocks[src]

impl Default for MetaBlocks[src]

impl Deref for MetaBlocks[src]

type Target = u64

The resulting type after dereferencing.

impl Debug for MetaBlocks[src]

impl Display for MetaBlocks[src]

impl Sub<MetaBlocks> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the - operator.

impl Add<MetaBlocks> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the + operator.

impl Mul<u64> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the * operator.

impl Mul<MetaBlocks> for u64[src]

type Output = MetaBlocks

The resulting type after applying the * operator.

impl Mul<u32> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the * operator.

impl Mul<MetaBlocks> for u32[src]

type Output = MetaBlocks

The resulting type after applying the * operator.

impl Mul<u16> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the * operator.

impl Mul<MetaBlocks> for u16[src]

type Output = MetaBlocks

The resulting type after applying the * operator.

impl Mul<u8> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the * operator.

impl Mul<MetaBlocks> for u8[src]

type Output = MetaBlocks

The resulting type after applying the * operator.

impl Mul<usize> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the * operator.

impl Mul<MetaBlocks> for usize[src]

type Output = MetaBlocks

The resulting type after applying the * operator.

impl Div<u64> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the / operator.

impl Div<u32> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the / operator.

impl Div<u16> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the / operator.

impl Div<u8> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the / operator.

impl Div<usize> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the / operator.

impl Div<MetaBlocks> for MetaBlocks[src]

type Output = u64

The resulting type after applying the / operator.

impl Rem<u64> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the % operator.

impl Rem<u32> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the % operator.

impl Rem<u16> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the % operator.

impl Rem<u8> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the % operator.

impl Rem<usize> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the % operator.

impl Rem<MetaBlocks> for MetaBlocks[src]

type Output = MetaBlocks

The resulting type after applying the % operator.

impl AddAssign<MetaBlocks> for MetaBlocks[src]

impl SubAssign<MetaBlocks> for MetaBlocks[src]

impl Sum<MetaBlocks> for MetaBlocks[src]

impl Serialize for MetaBlocks[src]

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

Auto Trait Implementations

impl Send for MetaBlocks

impl Sync for MetaBlocks

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]