Enum primitives::epoch::BlockHashOrEpochNumber
source · pub enum BlockHashOrEpochNumber {
BlockHashWithOption {
hash: H256,
require_pivot: Option<bool>,
},
EpochNumber(EpochNumber),
}
Variants§
Trait Implementations§
source§impl Clone for BlockHashOrEpochNumber
impl Clone for BlockHashOrEpochNumber
source§fn clone(&self) -> BlockHashOrEpochNumber
fn clone(&self) -> BlockHashOrEpochNumber
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 BlockHashOrEpochNumber
impl Debug for BlockHashOrEpochNumber
source§impl PartialEq for BlockHashOrEpochNumber
impl PartialEq for BlockHashOrEpochNumber
source§fn eq(&self, other: &BlockHashOrEpochNumber) -> bool
fn eq(&self, other: &BlockHashOrEpochNumber) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BlockHashOrEpochNumber
Auto Trait Implementations§
impl Freeze for BlockHashOrEpochNumber
impl RefUnwindSafe for BlockHashOrEpochNumber
impl Send for BlockHashOrEpochNumber
impl Sync for BlockHashOrEpochNumber
impl Unpin for BlockHashOrEpochNumber
impl UnwindSafe for BlockHashOrEpochNumber
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