Struct ethp2p::BlockHashNumber
source · [−]Expand description
A block hash and a block number.
Fields
hash: [u8; 32]
The block hash
number: u64
The block number
Trait Implementations
sourceimpl Clone for BlockHashNumber
impl Clone for BlockHashNumber
sourcefn clone(&self) -> BlockHashNumber
fn clone(&self) -> BlockHashNumber
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for BlockHashNumber
impl Debug for BlockHashNumber
sourceimpl Decodable for BlockHashNumber
impl Decodable for BlockHashNumber
sourceimpl Encodable for BlockHashNumber
impl Encodable for BlockHashNumber
sourceimpl PartialEq<BlockHashNumber> for BlockHashNumber
impl PartialEq<BlockHashNumber> for BlockHashNumber
sourcefn eq(&self, other: &BlockHashNumber) -> bool
fn eq(&self, other: &BlockHashNumber) -> bool
impl Eq for BlockHashNumber
impl StructuralEq for BlockHashNumber
impl StructuralPartialEq for BlockHashNumber
Auto Trait Implementations
impl RefUnwindSafe for BlockHashNumber
impl Send for BlockHashNumber
impl Sync for BlockHashNumber
impl Unpin for BlockHashNumber
impl UnwindSafe for BlockHashNumber
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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,
fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more