Struct fuel_types::BlockHeight
source · #[repr(transparent)]pub struct BlockHeight(_);
Expand description
FuelVM atomic numeric type.
Implementations§
Methods from Deref<Target = u32>§
pub const MIN: u32 = 0u32
pub const MAX: u32 = 4_294_967_295u32
pub const BITS: u32 = 32u32
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 Borrow<u32> for BlockHeight
impl Borrow<u32> for BlockHeight
source§impl BorrowMut<u32> for BlockHeight
impl BorrowMut<u32> for BlockHeight
source§fn borrow_mut(&mut self) -> &mut u32
fn borrow_mut(&mut self) -> &mut u32
Mutably borrows from an owned value. Read more
source§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 DerefMut for BlockHeight
impl DerefMut for BlockHeight
source§impl Display for BlockHeight
impl Display for BlockHeight
source§impl From<BlockHeight> for u32
impl From<BlockHeight> for u32
source§fn from(salt: BlockHeight) -> u32
fn from(salt: BlockHeight) -> u32
Converts to this type from the input type.
source§impl From<u32> for BlockHeight
impl From<u32> for BlockHeight
source§impl FromStr for BlockHeight
impl FromStr for BlockHeight
source§impl Hash for BlockHeight
impl Hash for BlockHeight
source§impl LowerHex for BlockHeight
impl LowerHex 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 moresource§impl TryFrom<&[u8]> for BlockHeight
impl TryFrom<&[u8]> for BlockHeight
§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
source§fn try_from(bytes: &[u8]) -> Result<BlockHeight, TryFromSliceError>
fn try_from(bytes: &[u8]) -> Result<BlockHeight, TryFromSliceError>
Performs the conversion.
source§impl UpperHex for BlockHeight
impl UpperHex for BlockHeight
impl 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<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