Struct fuel_core::model::BlockHeight
source · 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<'de> Deserialize<'de> for BlockHeight
impl<'de> Deserialize<'de> for BlockHeight
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<BlockHeight, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<BlockHeight, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for BlockHeight
impl Display for BlockHeight
source§impl From<BlockHeight> for U64
impl From<BlockHeight> for U64
source§fn from(h: BlockHeight) -> Self
fn from(h: 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) -> u32
fn from(original: BlockHeight) -> u32
Converts to this type from the input type.
source§impl From<BlockHeight> for u64
impl From<BlockHeight> for u64
source§fn from(b: BlockHeight) -> u64
fn from(b: BlockHeight) -> u64
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§fn from(height: u64) -> BlockHeight
fn from(height: u64) -> BlockHeight
Converts to this type from the input type.
source§impl From<usize> for BlockHeight
impl From<usize> for BlockHeight
source§fn from(n: usize) -> BlockHeight
fn from(n: usize) -> BlockHeight
Converts to this type from the input type.
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 Serialize for BlockHeight
impl Serialize for BlockHeight
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§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 moreimpl Copy for BlockHeight
impl Eq for BlockHeight
impl StructuralEq for BlockHeight
impl StructuralPartialEq for BlockHeight
Auto Trait Implementations§
impl RefUnwindSafe for BlockHeight
impl Send for BlockHeight
impl Sync for BlockHeight
impl Unpin for BlockHeight
impl UnwindSafe for BlockHeight
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.