pub enum HashOrHeight {
BlockHash(BlockHash),
Height(u64),
}
Expand description
Used to specify a block hash or a height
Variants§
Trait Implementations§
source§impl Clone for HashOrHeight
impl Clone for HashOrHeight
source§fn clone(&self) -> HashOrHeight
fn clone(&self) -> HashOrHeight
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 HashOrHeight
impl Debug for HashOrHeight
source§impl PartialEq<HashOrHeight> for HashOrHeight
impl PartialEq<HashOrHeight> for HashOrHeight
source§fn eq(&self, other: &HashOrHeight) -> bool
fn eq(&self, other: &HashOrHeight) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.