[][src]Struct devicemapper::DataBlocks

pub struct DataBlocks(pub u64);

A type for $T

Methods

impl DataBlocks[src]

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

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

Trait Implementations

impl Eq for DataBlocks[src]

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

impl Copy for DataBlocks[src]

impl Clone for DataBlocks[src]

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

Performs copy-assignment from source. Read more

impl PartialOrd<DataBlocks> for DataBlocks[src]

impl From<u64> for DataBlocks[src]

impl Default for DataBlocks[src]

impl Deref for DataBlocks[src]

type Target = u64

The resulting type after dereferencing.

impl Debug for DataBlocks[src]

impl Display for DataBlocks[src]

impl Sub<DataBlocks> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the - operator.

impl Add<DataBlocks> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the + operator.

impl Mul<u64> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the * operator.

impl Mul<DataBlocks> for u64[src]

type Output = DataBlocks

The resulting type after applying the * operator.

impl Mul<u32> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the * operator.

impl Mul<DataBlocks> for u32[src]

type Output = DataBlocks

The resulting type after applying the * operator.

impl Mul<u16> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the * operator.

impl Mul<DataBlocks> for u16[src]

type Output = DataBlocks

The resulting type after applying the * operator.

impl Mul<u8> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the * operator.

impl Mul<DataBlocks> for u8[src]

type Output = DataBlocks

The resulting type after applying the * operator.

impl Mul<usize> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the * operator.

impl Mul<DataBlocks> for usize[src]

type Output = DataBlocks

The resulting type after applying the * operator.

impl Div<u64> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the / operator.

impl Div<u32> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the / operator.

impl Div<u16> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the / operator.

impl Div<u8> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the / operator.

impl Div<usize> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the / operator.

impl Div<DataBlocks> for DataBlocks[src]

type Output = u64

The resulting type after applying the / operator.

impl Rem<u64> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the % operator.

impl Rem<u32> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the % operator.

impl Rem<u16> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the % operator.

impl Rem<u8> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the % operator.

impl Rem<usize> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the % operator.

impl Rem<DataBlocks> for DataBlocks[src]

type Output = DataBlocks

The resulting type after applying the % operator.

impl AddAssign<DataBlocks> for DataBlocks[src]

impl SubAssign<DataBlocks> for DataBlocks[src]

impl Sum<DataBlocks> for DataBlocks[src]

impl Serialize for DataBlocks[src]

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

Auto Trait Implementations

impl Send for DataBlocks

impl Sync for DataBlocks

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]