Enum ethp2p::BlockHashOrNumber
source · [−]Expand description
Either a block hash or a block number
Variants
Hash([u8; 32])
A block hash
Number(u64)
A block number
Trait Implementations
sourceimpl Clone for BlockHashOrNumber
impl Clone for BlockHashOrNumber
sourcefn clone(&self) -> BlockHashOrNumber
fn clone(&self) -> BlockHashOrNumber
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 BlockHashOrNumber
impl Debug for BlockHashOrNumber
sourceimpl Decodable for BlockHashOrNumber
impl Decodable for BlockHashOrNumber
Allows for RLP decoding of a block hash or block number
sourceimpl Encodable for BlockHashOrNumber
impl Encodable for BlockHashOrNumber
Allows for RLP encoding of either a block hash or block number
sourceimpl PartialEq<BlockHashOrNumber> for BlockHashOrNumber
impl PartialEq<BlockHashOrNumber> for BlockHashOrNumber
sourcefn eq(&self, other: &BlockHashOrNumber) -> bool
fn eq(&self, other: &BlockHashOrNumber) -> bool
impl Copy for BlockHashOrNumber
impl Eq for BlockHashOrNumber
impl StructuralEq for BlockHashOrNumber
impl StructuralPartialEq for BlockHashOrNumber
Auto Trait Implementations
impl RefUnwindSafe for BlockHashOrNumber
impl Send for BlockHashOrNumber
impl Sync for BlockHashOrNumber
impl Unpin for BlockHashOrNumber
impl UnwindSafe for BlockHashOrNumber
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