Struct devicemapper::DataBlocks
source · [−]pub struct DataBlocks(pub u64);Expand description
A type for data blocks
Tuple Fields
0: u64Implementations
sourceimpl 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
sourceimpl Add<DataBlocks> for DataBlocks
impl Add<DataBlocks> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the + operator.
sourcefn add(self, rhs: DataBlocks) -> DataBlocks
fn add(self, rhs: DataBlocks) -> DataBlocks
Performs the + operation. Read more
sourceimpl AddAssign<DataBlocks> for DataBlocks
impl AddAssign<DataBlocks> for DataBlocks
sourcefn add_assign(&mut self, rhs: DataBlocks)
fn add_assign(&mut self, rhs: DataBlocks)
Performs the += operation. Read more
sourceimpl Clone for DataBlocks
impl Clone for DataBlocks
sourcefn clone(&self) -> DataBlocks
fn clone(&self) -> DataBlocks
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DataBlocks
impl Debug for DataBlocks
sourceimpl Default for DataBlocks
impl Default for DataBlocks
sourcefn default() -> DataBlocks
fn default() -> DataBlocks
Returns the “default value” for a type. Read more
sourceimpl Deref for DataBlocks
impl Deref for DataBlocks
sourceimpl<'de> Deserialize<'de> for DataBlocks
impl<'de> Deserialize<'de> for DataBlocks
sourcefn 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
sourceimpl Display for DataBlocks
impl Display for DataBlocks
sourceimpl Div<DataBlocks> for DataBlocks
impl Div<DataBlocks> for DataBlocks
sourceimpl Div<u16> for DataBlocks
impl Div<u16> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the / operator.
sourcefn div(self, rhs: u16) -> DataBlocks
fn div(self, rhs: u16) -> DataBlocks
Performs the / operation. Read more
sourceimpl Div<u32> for DataBlocks
impl Div<u32> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the / operator.
sourcefn div(self, rhs: u32) -> DataBlocks
fn div(self, rhs: u32) -> DataBlocks
Performs the / operation. Read more
sourceimpl Div<u64> for DataBlocks
impl Div<u64> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the / operator.
sourcefn div(self, rhs: u64) -> DataBlocks
fn div(self, rhs: u64) -> DataBlocks
Performs the / operation. Read more
sourceimpl Div<u8> for DataBlocks
impl Div<u8> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the / operator.
sourcefn div(self, rhs: u8) -> DataBlocks
fn div(self, rhs: u8) -> DataBlocks
Performs the / operation. Read more
sourceimpl Div<usize> for DataBlocks
impl Div<usize> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the / operator.
sourcefn div(self, rhs: usize) -> DataBlocks
fn div(self, rhs: usize) -> DataBlocks
Performs the / operation. Read more
sourceimpl From<u16> for DataBlocks
impl From<u16> for DataBlocks
sourcefn from(t: u16) -> DataBlocks
fn from(t: u16) -> DataBlocks
Converts to this type from the input type.
sourceimpl From<u32> for DataBlocks
impl From<u32> for DataBlocks
sourcefn from(t: u32) -> DataBlocks
fn from(t: u32) -> DataBlocks
Converts to this type from the input type.
sourceimpl From<u64> for DataBlocks
impl From<u64> for DataBlocks
sourcefn from(t: u64) -> DataBlocks
fn from(t: u64) -> DataBlocks
Converts to this type from the input type.
sourceimpl From<u8> for DataBlocks
impl From<u8> for DataBlocks
sourcefn from(t: u8) -> DataBlocks
fn from(t: u8) -> DataBlocks
Converts to this type from the input type.
sourceimpl From<usize> for DataBlocks
impl From<usize> for DataBlocks
sourcefn from(t: usize) -> DataBlocks
fn from(t: usize) -> DataBlocks
Converts to this type from the input type.
sourceimpl Hash for DataBlocks
impl Hash for DataBlocks
sourceimpl Mul<DataBlocks> for u16
impl Mul<DataBlocks> for u16
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the * operator.
sourcefn mul(self, rhs: DataBlocks) -> DataBlocks
fn mul(self, rhs: DataBlocks) -> DataBlocks
Performs the * operation. Read more
sourceimpl Mul<DataBlocks> for u32
impl Mul<DataBlocks> for u32
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the * operator.
sourcefn mul(self, rhs: DataBlocks) -> DataBlocks
fn mul(self, rhs: DataBlocks) -> DataBlocks
Performs the * operation. Read more
sourceimpl Mul<DataBlocks> for u64
impl Mul<DataBlocks> for u64
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the * operator.
sourcefn mul(self, rhs: DataBlocks) -> DataBlocks
fn mul(self, rhs: DataBlocks) -> DataBlocks
Performs the * operation. Read more
sourceimpl Mul<DataBlocks> for u8
impl Mul<DataBlocks> for u8
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the * operator.
sourcefn mul(self, rhs: DataBlocks) -> DataBlocks
fn mul(self, rhs: DataBlocks) -> DataBlocks
Performs the * operation. Read more
sourceimpl Mul<DataBlocks> for usize
impl Mul<DataBlocks> for usize
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the * operator.
sourcefn mul(self, rhs: DataBlocks) -> DataBlocks
fn mul(self, rhs: DataBlocks) -> DataBlocks
Performs the * operation. Read more
sourceimpl Mul<u16> for DataBlocks
impl Mul<u16> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the * operator.
sourcefn mul(self, rhs: u16) -> DataBlocks
fn mul(self, rhs: u16) -> DataBlocks
Performs the * operation. Read more
sourceimpl Mul<u32> for DataBlocks
impl Mul<u32> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the * operator.
sourcefn mul(self, rhs: u32) -> DataBlocks
fn mul(self, rhs: u32) -> DataBlocks
Performs the * operation. Read more
sourceimpl Mul<u64> for DataBlocks
impl Mul<u64> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the * operator.
sourcefn mul(self, rhs: u64) -> DataBlocks
fn mul(self, rhs: u64) -> DataBlocks
Performs the * operation. Read more
sourceimpl Mul<u8> for DataBlocks
impl Mul<u8> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the * operator.
sourcefn mul(self, rhs: u8) -> DataBlocks
fn mul(self, rhs: u8) -> DataBlocks
Performs the * operation. Read more
sourceimpl Mul<usize> for DataBlocks
impl Mul<usize> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the * operator.
sourcefn mul(self, rhs: usize) -> DataBlocks
fn mul(self, rhs: usize) -> DataBlocks
Performs the * operation. Read more
sourceimpl Ord for DataBlocks
impl Ord for DataBlocks
sourceimpl PartialEq<DataBlocks> for DataBlocks
impl PartialEq<DataBlocks> for DataBlocks
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &DataBlocks) -> bool
fn ne(&self, other: &DataBlocks) -> bool
This method tests for !=.
sourceimpl PartialOrd<DataBlocks> for DataBlocks
impl PartialOrd<DataBlocks> for DataBlocks
sourcefn partial_cmp(&self, other: &DataBlocks) -> Option<Ordering>
fn partial_cmp(&self, other: &DataBlocks) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl<T> Rem<T> for DataBlocks where
DataBlocks: From<T>,
impl<T> Rem<T> for DataBlocks where
DataBlocks: From<T>,
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the % operator.
sourcefn rem(self, rhs: T) -> DataBlocks
fn rem(self, rhs: T) -> DataBlocks
Performs the % operation. Read more
sourceimpl Serialize for DataBlocks
impl Serialize for DataBlocks
sourceimpl Sub<DataBlocks> for DataBlocks
impl Sub<DataBlocks> for DataBlocks
type Output = DataBlocks
type Output = DataBlocks
The resulting type after applying the - operator.
sourcefn sub(self, rhs: DataBlocks) -> DataBlocks
fn sub(self, rhs: DataBlocks) -> DataBlocks
Performs the - operation. Read more
sourceimpl SubAssign<DataBlocks> for DataBlocks
impl SubAssign<DataBlocks> for DataBlocks
sourcefn sub_assign(&mut self, rhs: DataBlocks)
fn sub_assign(&mut self, rhs: DataBlocks)
Performs the -= operation. Read more
sourceimpl Sum<DataBlocks> for DataBlocks
impl Sum<DataBlocks> for DataBlocks
sourcefn 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. Read more
impl Copy for DataBlocks
impl Eq for DataBlocks
impl StructuralEq for DataBlocks
impl StructuralPartialEq for DataBlocks
Auto Trait Implementations
impl RefUnwindSafe for DataBlocks
impl Send for DataBlocks
impl Sync for DataBlocks
impl Unpin for DataBlocks
impl UnwindSafe for DataBlocks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more