Struct devicemapper::MetaBlocks
source · pub struct MetaBlocks(pub u64);Expand description
A type for meta blocks
Tuple Fields§
§0: u64Implementations§
source§impl MetaBlocks
impl MetaBlocks
sourcepub fn checked_add(&self, other: MetaBlocks) -> Option<MetaBlocks>
pub fn checked_add(&self, other: MetaBlocks) -> Option<MetaBlocks>
Add two items of the same type, return None if overflow.
Methods from Deref<Target = u64>§
Trait Implementations§
source§impl Add<MetaBlocks> for MetaBlocks
impl Add<MetaBlocks> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
+ operator.source§fn add(self, rhs: MetaBlocks) -> MetaBlocks
fn add(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
+ operation. Read moresource§impl AddAssign<MetaBlocks> for MetaBlocks
impl AddAssign<MetaBlocks> for MetaBlocks
source§fn add_assign(&mut self, rhs: MetaBlocks)
fn add_assign(&mut self, rhs: MetaBlocks)
Performs the
+= operation. Read moresource§impl Clone for MetaBlocks
impl Clone for MetaBlocks
source§fn clone(&self) -> MetaBlocks
fn clone(&self) -> MetaBlocks
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MetaBlocks
impl Debug for MetaBlocks
source§impl Default for MetaBlocks
impl Default for MetaBlocks
source§fn default() -> MetaBlocks
fn default() -> MetaBlocks
Returns the “default value” for a type. Read more
source§impl Deref for MetaBlocks
impl Deref for MetaBlocks
source§impl<'de> Deserialize<'de> for MetaBlocks
impl<'de> Deserialize<'de> for MetaBlocks
source§fn deserialize<D>(deserializer: D) -> Result<MetaBlocks, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<MetaBlocks, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for MetaBlocks
impl Display for MetaBlocks
source§impl Div<MetaBlocks> for MetaBlocks
impl Div<MetaBlocks> for MetaBlocks
source§impl Div<u16> for MetaBlocks
impl Div<u16> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.source§impl Div<u32> for MetaBlocks
impl Div<u32> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.source§impl Div<u64> for MetaBlocks
impl Div<u64> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.source§impl Div<u8> for MetaBlocks
impl Div<u8> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.source§impl Div<usize> for MetaBlocks
impl Div<usize> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.source§impl From<u16> for MetaBlocks
impl From<u16> for MetaBlocks
source§fn from(t: u16) -> MetaBlocks
fn from(t: u16) -> MetaBlocks
Converts to this type from the input type.
source§impl From<u32> for MetaBlocks
impl From<u32> for MetaBlocks
source§fn from(t: u32) -> MetaBlocks
fn from(t: u32) -> MetaBlocks
Converts to this type from the input type.
source§impl From<u64> for MetaBlocks
impl From<u64> for MetaBlocks
source§fn from(t: u64) -> MetaBlocks
fn from(t: u64) -> MetaBlocks
Converts to this type from the input type.
source§impl From<u8> for MetaBlocks
impl From<u8> for MetaBlocks
source§fn from(t: u8) -> MetaBlocks
fn from(t: u8) -> MetaBlocks
Converts to this type from the input type.
source§impl From<usize> for MetaBlocks
impl From<usize> for MetaBlocks
source§fn from(t: usize) -> MetaBlocks
fn from(t: usize) -> MetaBlocks
Converts to this type from the input type.
source§impl Hash for MetaBlocks
impl Hash for MetaBlocks
source§impl Mul<MetaBlocks> for u16
impl Mul<MetaBlocks> for u16
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.source§fn mul(self, rhs: MetaBlocks) -> MetaBlocks
fn mul(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
* operation. Read moresource§impl Mul<MetaBlocks> for u32
impl Mul<MetaBlocks> for u32
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.source§fn mul(self, rhs: MetaBlocks) -> MetaBlocks
fn mul(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
* operation. Read moresource§impl Mul<MetaBlocks> for u64
impl Mul<MetaBlocks> for u64
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.source§fn mul(self, rhs: MetaBlocks) -> MetaBlocks
fn mul(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
* operation. Read moresource§impl Mul<MetaBlocks> for u8
impl Mul<MetaBlocks> for u8
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.source§fn mul(self, rhs: MetaBlocks) -> MetaBlocks
fn mul(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
* operation. Read moresource§impl Mul<MetaBlocks> for usize
impl Mul<MetaBlocks> for usize
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.source§fn mul(self, rhs: MetaBlocks) -> MetaBlocks
fn mul(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
* operation. Read moresource§impl Mul<u16> for MetaBlocks
impl Mul<u16> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.source§impl Mul<u32> for MetaBlocks
impl Mul<u32> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.source§impl Mul<u64> for MetaBlocks
impl Mul<u64> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.source§impl Mul<u8> for MetaBlocks
impl Mul<u8> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.source§impl Mul<usize> for MetaBlocks
impl Mul<usize> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.source§impl Ord for MetaBlocks
impl Ord for MetaBlocks
source§fn cmp(&self, other: &MetaBlocks) -> Ordering
fn cmp(&self, other: &MetaBlocks) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<MetaBlocks> for MetaBlocks
impl PartialEq<MetaBlocks> for MetaBlocks
source§fn eq(&self, other: &MetaBlocks) -> bool
fn eq(&self, other: &MetaBlocks) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<MetaBlocks> for MetaBlocks
impl PartialOrd<MetaBlocks> for MetaBlocks
source§fn partial_cmp(&self, other: &MetaBlocks) -> Option<Ordering>
fn partial_cmp(&self, other: &MetaBlocks) -> Option<Ordering>
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<T> Rem<T> for MetaBlockswhere
MetaBlocks: From<T>,
impl<T> Rem<T> for MetaBlockswhere MetaBlocks: From<T>,
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
% operator.source§fn rem(self, rhs: T) -> MetaBlocks
fn rem(self, rhs: T) -> MetaBlocks
Performs the
% operation. Read moresource§impl Serialize for MetaBlocks
impl Serialize for MetaBlocks
source§impl Sub<MetaBlocks> for MetaBlocks
impl Sub<MetaBlocks> for MetaBlocks
§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
- operator.source§fn sub(self, rhs: MetaBlocks) -> MetaBlocks
fn sub(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
- operation. Read moresource§impl SubAssign<MetaBlocks> for MetaBlocks
impl SubAssign<MetaBlocks> for MetaBlocks
source§fn sub_assign(&mut self, rhs: MetaBlocks)
fn sub_assign(&mut self, rhs: MetaBlocks)
Performs the
-= operation. Read moresource§impl Sum<MetaBlocks> for MetaBlocks
impl Sum<MetaBlocks> for MetaBlocks
source§fn sum<I: Iterator<Item = MetaBlocks>>(iter: I) -> MetaBlocks
fn sum<I: Iterator<Item = MetaBlocks>>(iter: I) -> MetaBlocks
Method which takes an iterator and generates
Self from the elements by
“summing up” the items.