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<'de> Deserialize<'de> for HashOrHeight
impl<'de> Deserialize<'de> for HashOrHeight
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 PartialEq for HashOrHeight
impl PartialEq 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 ==
.source§impl Serialize for HashOrHeight
impl Serialize for HashOrHeight
impl Eq for HashOrHeight
impl StructuralPartialEq for HashOrHeight
Auto Trait Implementations§
impl Freeze for HashOrHeight
impl RefUnwindSafe for HashOrHeight
impl Send for HashOrHeight
impl Sync for HashOrHeight
impl Unpin for HashOrHeight
impl UnwindSafe for HashOrHeight
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