pub struct BlockNumber(/* private fields */);Expand description
Ethereum execution-layer block number.
Implementations§
Trait Implementations§
Source§impl Clone for BlockNumber
impl Clone for BlockNumber
Source§fn clone(&self) -> BlockNumber
fn clone(&self) -> BlockNumber
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockNumber
Source§impl Debug for BlockNumber
impl Debug for BlockNumber
impl Eq for BlockNumber
Source§impl From<BlockNumber> for u64
impl From<BlockNumber> for u64
Source§fn from(value: BlockNumber) -> Self
fn from(value: BlockNumber) -> Self
Converts to this type from the input type.
Source§impl From<u64> for BlockNumber
impl From<u64> for BlockNumber
Source§impl Hash for BlockNumber
impl Hash for BlockNumber
Source§impl Ord for BlockNumber
impl Ord for BlockNumber
Source§fn cmp(&self, other: &BlockNumber) -> Ordering
fn cmp(&self, other: &BlockNumber) -> Ordering
1.21.0 (const: unstable) · 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 BlockNumber
impl PartialEq for BlockNumber
Source§fn eq(&self, other: &BlockNumber) -> bool
fn eq(&self, other: &BlockNumber) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BlockNumber
impl PartialOrd for BlockNumber
impl StructuralPartialEq for BlockNumber
Auto Trait Implementations§
impl Freeze for BlockNumber
impl RefUnwindSafe for BlockNumber
impl Send for BlockNumber
impl Sync for BlockNumber
impl Unpin for BlockNumber
impl UnsafeUnpin for BlockNumber
impl UnwindSafe for BlockNumber
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