Struct devicemapper::MetaBlocks
source · pub struct MetaBlocks(pub u64);
Expand description
A type for meta blocks
Tuple Fields§
§0: u64
Implementations§
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>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl Add for MetaBlocks
impl Add 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 for MetaBlocks
impl AddAssign 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<'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<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 Div for MetaBlocks
impl Div for MetaBlocks
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 for MetaBlocks
impl PartialEq 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 for MetaBlocks
impl PartialOrd 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 for MetaBlocks
impl Sub 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 for MetaBlocks
impl SubAssign for MetaBlocks
source§fn sub_assign(&mut self, rhs: MetaBlocks)
fn sub_assign(&mut self, rhs: MetaBlocks)
Performs the
-=
operation. Read moresource§impl Sum for MetaBlocks
impl Sum 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.source§impl Deref for MetaBlocks
impl Deref for MetaBlocks
impl Copy for MetaBlocks
impl Eq for MetaBlocks
impl StructuralPartialEq for MetaBlocks
Auto Trait Implementations§
impl Freeze for MetaBlocks
impl RefUnwindSafe for MetaBlocks
impl Send for MetaBlocks
impl Sync for MetaBlocks
impl Unpin for MetaBlocks
impl UnwindSafe for MetaBlocks
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more