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 for HashOrHeight
impl PartialEq for HashOrHeight
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