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