pub struct BlockPointer {
pub number: BlockNumber,
pub hash: BlockHash,
}
Expand description
A pointer to a block in the chain.
Fields§
§number: BlockNumber
The block number.
hash: BlockHash
The block hash.
Trait Implementations§
source§impl Clone for BlockPointer
impl Clone for BlockPointer
source§fn clone(&self) -> BlockPointer
fn clone(&self) -> BlockPointer
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 BlockPointer
impl Debug for BlockPointer
source§impl<'de> Deserialize<'de> for BlockPointer
impl<'de> Deserialize<'de> for BlockPointer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for BlockPointer
impl Ord for BlockPointer
source§fn cmp(&self, other: &BlockPointer) -> Ordering
fn cmp(&self, other: &BlockPointer) -> 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 BlockPointer
impl PartialEq for BlockPointer
source§impl PartialOrd for BlockPointer
impl PartialOrd for BlockPointer
source§impl Serialize for BlockPointer
impl Serialize for BlockPointer
impl Eq for BlockPointer
impl StructuralPartialEq for BlockPointer
Auto Trait Implementations§
impl Freeze for BlockPointer
impl RefUnwindSafe for BlockPointer
impl Send for BlockPointer
impl Sync for BlockPointer
impl Unpin for BlockPointer
impl UnwindSafe for BlockPointer
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)