Struct devicemapper::MetaBlocks
source · pub struct MetaBlocks(pub u64);Expand description
A type for Meta Data blocks as used by the thin pool. MetaBlocks have a kernel defined constant size of META_BLOCK_SIZE
Tuple Fields
0: u64Implementations
sourceimpl MetaBlocks
impl MetaBlocks
Methods from Deref<Target = u64>
Trait Implementations
sourceimpl Add<MetaBlocks> for MetaBlocks
impl Add<MetaBlocks> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
+ operator.sourcefn add(self, rhs: Self) -> MetaBlocks
fn add(self, rhs: Self) -> MetaBlocks
Performs the
+ operation. Read moresourceimpl AddAssign<MetaBlocks> for MetaBlocks
impl AddAssign<MetaBlocks> for MetaBlocks
sourcefn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moresourceimpl Clone for MetaBlocks
impl Clone for MetaBlocks
sourcefn clone(&self) -> MetaBlocks
fn clone(&self) -> MetaBlocks
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 moresourceimpl Debug for MetaBlocks
impl Debug for MetaBlocks
sourceimpl Default for MetaBlocks
impl Default for MetaBlocks
sourcefn default() -> MetaBlocks
fn default() -> MetaBlocks
Returns the “default value” for a type. Read more
sourceimpl Deref for MetaBlocks
impl Deref for MetaBlocks
sourceimpl<'de> Deserialize<'de> for MetaBlocks
impl<'de> Deserialize<'de> for MetaBlocks
sourcefn 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
sourceimpl Display for MetaBlocks
impl Display for MetaBlocks
sourceimpl Div<MetaBlocks> for MetaBlocks
impl Div<MetaBlocks> for MetaBlocks
sourceimpl Div<u16> for MetaBlocks
impl Div<u16> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.sourcefn div(self, rhs: u16) -> MetaBlocks
fn div(self, rhs: u16) -> MetaBlocks
Performs the
/ operation. Read moresourceimpl Div<u32> for MetaBlocks
impl Div<u32> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.sourcefn div(self, rhs: u32) -> MetaBlocks
fn div(self, rhs: u32) -> MetaBlocks
Performs the
/ operation. Read moresourceimpl Div<u64> for MetaBlocks
impl Div<u64> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.sourcefn div(self, rhs: u64) -> MetaBlocks
fn div(self, rhs: u64) -> MetaBlocks
Performs the
/ operation. Read moresourceimpl Div<u8> for MetaBlocks
impl Div<u8> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.sourcefn div(self, rhs: u8) -> MetaBlocks
fn div(self, rhs: u8) -> MetaBlocks
Performs the
/ operation. Read moresourceimpl Div<usize> for MetaBlocks
impl Div<usize> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.sourcefn div(self, rhs: usize) -> MetaBlocks
fn div(self, rhs: usize) -> MetaBlocks
Performs the
/ operation. Read moresourceimpl From<MetaBlocks> for u64
impl From<MetaBlocks> for u64
sourcefn from(v: MetaBlocks) -> Self
fn from(v: MetaBlocks) -> Self
Converts to this type from the input type.
sourceimpl From<u64> for MetaBlocks
impl From<u64> for MetaBlocks
sourceimpl Mul<MetaBlocks> for u16
impl Mul<MetaBlocks> for u16
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.sourcefn mul(self, rhs: MetaBlocks) -> MetaBlocks
fn mul(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
* operation. Read moresourceimpl Mul<MetaBlocks> for u32
impl Mul<MetaBlocks> for u32
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.sourcefn mul(self, rhs: MetaBlocks) -> MetaBlocks
fn mul(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
* operation. Read moresourceimpl Mul<MetaBlocks> for u64
impl Mul<MetaBlocks> for u64
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.sourcefn mul(self, rhs: MetaBlocks) -> MetaBlocks
fn mul(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
* operation. Read moresourceimpl Mul<MetaBlocks> for u8
impl Mul<MetaBlocks> for u8
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.sourcefn mul(self, rhs: MetaBlocks) -> MetaBlocks
fn mul(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
* operation. Read moresourceimpl Mul<MetaBlocks> for usize
impl Mul<MetaBlocks> for usize
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.sourcefn mul(self, rhs: MetaBlocks) -> MetaBlocks
fn mul(self, rhs: MetaBlocks) -> MetaBlocks
Performs the
* operation. Read moresourceimpl Mul<u16> for MetaBlocks
impl Mul<u16> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.sourcefn mul(self, rhs: u16) -> MetaBlocks
fn mul(self, rhs: u16) -> MetaBlocks
Performs the
* operation. Read moresourceimpl Mul<u32> for MetaBlocks
impl Mul<u32> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.sourcefn mul(self, rhs: u32) -> MetaBlocks
fn mul(self, rhs: u32) -> MetaBlocks
Performs the
* operation. Read moresourceimpl Mul<u64> for MetaBlocks
impl Mul<u64> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.sourcefn mul(self, rhs: u64) -> MetaBlocks
fn mul(self, rhs: u64) -> MetaBlocks
Performs the
* operation. Read moresourceimpl Mul<u8> for MetaBlocks
impl Mul<u8> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.sourcefn mul(self, rhs: u8) -> MetaBlocks
fn mul(self, rhs: u8) -> MetaBlocks
Performs the
* operation. Read moresourceimpl Mul<usize> for MetaBlocks
impl Mul<usize> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.sourcefn mul(self, rhs: usize) -> MetaBlocks
fn mul(self, rhs: usize) -> MetaBlocks
Performs the
* operation. Read moresourceimpl Ord for MetaBlocks
impl Ord for MetaBlocks
sourcefn cmp(&self, other: &MetaBlocks) -> Ordering
fn cmp(&self, other: &MetaBlocks) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<MetaBlocks> for MetaBlocks
impl PartialEq<MetaBlocks> for MetaBlocks
sourcefn eq(&self, other: &MetaBlocks) -> bool
fn eq(&self, other: &MetaBlocks) -> bool
sourceimpl PartialOrd<MetaBlocks> for MetaBlocks
impl PartialOrd<MetaBlocks> for MetaBlocks
sourcefn partial_cmp(&self, other: &MetaBlocks) -> Option<Ordering>
fn partial_cmp(&self, other: &MetaBlocks) -> Option<Ordering>
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 moresourceimpl Serialize for MetaBlocks
impl Serialize for MetaBlocks
sourceimpl Sub<MetaBlocks> for MetaBlocks
impl Sub<MetaBlocks> for MetaBlocks
type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
- operator.sourcefn sub(self, rhs: Self) -> MetaBlocks
fn sub(self, rhs: Self) -> MetaBlocks
Performs the
- operation. Read moresourceimpl SubAssign<MetaBlocks> for MetaBlocks
impl SubAssign<MetaBlocks> for MetaBlocks
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreimpl Copy for MetaBlocks
impl Eq for MetaBlocks
impl StructuralEq for MetaBlocks
impl StructuralPartialEq for MetaBlocks
Auto Trait Implementations
impl RefUnwindSafe for MetaBlocks
impl Send for MetaBlocks
impl Sync for MetaBlocks
impl Unpin for MetaBlocks
impl UnwindSafe for MetaBlocks
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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