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>§
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 DataBlocks
impl Add 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 for DataBlocks
impl AddAssign 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<'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<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 Div for DataBlocks
impl Div for DataBlocks
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 for DataBlocks
impl PartialEq 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 for DataBlocks
impl PartialOrd 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 for DataBlocks
impl Sub 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 for DataBlocks
impl SubAssign for DataBlocks
source§fn sub_assign(&mut self, rhs: DataBlocks)
fn sub_assign(&mut self, rhs: DataBlocks)
Performs the
-= operation. Read moresource§impl Sum for DataBlocks
impl Sum 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.source§impl Deref for DataBlocks
impl Deref for DataBlocks
impl Copy for DataBlocks
impl Eq for DataBlocks
impl StructuralPartialEq for DataBlocks
Auto Trait Implementations§
impl Freeze for DataBlocks
impl RefUnwindSafe for DataBlocks
impl Send for DataBlocks
impl Sync for DataBlocks
impl Unpin for DataBlocks
impl UnwindSafe for DataBlocks
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