Struct fuel_core_interfaces::model::BlockHeight
source · #[repr(transparent)]pub struct BlockHeight(_);
Implementations§
Methods from Deref<Target = u32>§
Trait Implementations§
source§impl Add<BlockHeight> for BlockHeight
impl Add<BlockHeight> for BlockHeight
§type Output = BlockHeight
type Output = BlockHeight
The resulting type after applying the
+
operator.source§fn add(self, rhs: BlockHeight) -> BlockHeight
fn add(self, rhs: BlockHeight) -> BlockHeight
Performs the
+
operation. Read moresource§impl Clone for BlockHeight
impl Clone for BlockHeight
source§fn clone(&self) -> BlockHeight
fn clone(&self) -> BlockHeight
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 BlockHeight
impl Debug for BlockHeight
source§impl Default for BlockHeight
impl Default for BlockHeight
source§fn default() -> BlockHeight
fn default() -> BlockHeight
Returns the “default value” for a type. Read more
source§impl Deref for BlockHeight
impl Deref for BlockHeight
source§impl Display for BlockHeight
impl Display for BlockHeight
source§impl From<BlockHeight> for Vec<u8>
impl From<BlockHeight> for Vec<u8>
source§fn from(height: BlockHeight) -> Self
fn from(height: BlockHeight) -> Self
Converts to this type from the input type.
source§impl From<BlockHeight> for u32
impl From<BlockHeight> for u32
source§fn from(original: BlockHeight) -> Self
fn from(original: BlockHeight) -> Self
Converts to this type from the input type.
source§impl From<BlockHeight> for u64
impl From<BlockHeight> for u64
source§fn from(b: BlockHeight) -> Self
fn from(b: BlockHeight) -> Self
Converts to this type from the input type.
source§impl From<u32> for BlockHeight
impl From<u32> for BlockHeight
source§fn from(original: u32) -> BlockHeight
fn from(original: u32) -> BlockHeight
Converts to this type from the input type.
source§impl From<u64> for BlockHeight
impl From<u64> for BlockHeight
source§impl From<usize> for BlockHeight
impl From<usize> for BlockHeight
source§impl Hash for BlockHeight
impl Hash for BlockHeight
source§impl Ord for BlockHeight
impl Ord for BlockHeight
source§fn cmp(&self, other: &BlockHeight) -> Ordering
fn cmp(&self, other: &BlockHeight) -> 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<BlockHeight> for BlockHeight
impl PartialEq<BlockHeight> for BlockHeight
source§fn eq(&self, other: &BlockHeight) -> bool
fn eq(&self, other: &BlockHeight) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<BlockHeight> for BlockHeight
impl PartialOrd<BlockHeight> for BlockHeight
source§fn partial_cmp(&self, other: &BlockHeight) -> Option<Ordering>
fn partial_cmp(&self, other: &BlockHeight) -> 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 Sub<BlockHeight> for BlockHeight
impl Sub<BlockHeight> for BlockHeight
§type Output = BlockHeight
type Output = BlockHeight
The resulting type after applying the
-
operator.source§fn sub(self, rhs: BlockHeight) -> BlockHeight
fn sub(self, rhs: BlockHeight) -> BlockHeight
Performs the
-
operation. Read more