Expand description
Used to specify a block hash or a height
Variants
BlockHash(BlockHash)
Height(u64)
Trait Implementations
sourceimpl Clone for HashOrHeight
impl Clone for HashOrHeight
sourcefn clone(&self) -> HashOrHeight
fn clone(&self) -> HashOrHeight
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 more
sourceimpl Debug for HashOrHeight
impl Debug for HashOrHeight
sourceimpl PartialEq<HashOrHeight> for HashOrHeight
impl PartialEq<HashOrHeight> for HashOrHeight
sourcefn 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 ==
. Read more
sourceimpl Serialize for HashOrHeight
impl Serialize for HashOrHeight
impl Eq for HashOrHeight
impl StructuralEq for HashOrHeight
impl StructuralPartialEq for HashOrHeight
Auto Trait Implementations
impl RefUnwindSafe for HashOrHeight
impl Send for HashOrHeight
impl Sync for HashOrHeight
impl Unpin for HashOrHeight
impl UnwindSafe for HashOrHeight
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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