pub struct MetaBlocks(pub u64);Expand description
A type for meta blocks
Tuple Fields§
§0: u64Implementations§
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.
Trait Implementations§
Source§impl Add for MetaBlocks
impl Add for MetaBlocks
Source§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 duplicate 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 Deref for MetaBlocks
impl Deref for MetaBlocks
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
Source§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.Source§impl Div<u32> for MetaBlocks
impl Div<u32> for MetaBlocks
Source§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.Source§impl Div<u64> for MetaBlocks
impl Div<u64> for MetaBlocks
Source§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.Source§impl Div<u8> for MetaBlocks
impl Div<u8> for MetaBlocks
Source§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
/ operator.Source§impl Div<usize> for MetaBlocks
impl Div<usize> for MetaBlocks
Source§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
Source§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
Source§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
Source§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
Source§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
Source§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
Source§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.Source§impl Mul<u32> for MetaBlocks
impl Mul<u32> for MetaBlocks
Source§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.Source§impl Mul<u64> for MetaBlocks
impl Mul<u64> for MetaBlocks
Source§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.Source§impl Mul<u8> for MetaBlocks
impl Mul<u8> for MetaBlocks
Source§type Output = MetaBlocks
type Output = MetaBlocks
The resulting type after applying the
* operator.Source§impl Mul<usize> for MetaBlocks
impl Mul<usize> for MetaBlocks
Source§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§impl PartialOrd for MetaBlocks
impl PartialOrd for MetaBlocks
Source§impl<T> Rem<T> for MetaBlockswhere
MetaBlocks: From<T>,
impl<T> Rem<T> for MetaBlockswhere
MetaBlocks: From<T>,
Source§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
Source§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
Takes an iterator and generates
Self from the elements by “summing up”
the items.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 UnsafeUnpin 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