pub enum BlockId {
Hash(H256),
Number(BlockNumber),
}Expand description
Block Identifier
Variants
Hash(H256)
By Hash
Number(BlockNumber)
By Number
Trait Implementations
sourceimpl From<BlockNumber> for BlockId
impl From<BlockNumber> for BlockId
sourcefn from(num: BlockNumber) -> Self
fn from(num: BlockNumber) -> Self
Converts to this type from the input type.
impl Copy for BlockId
impl StructuralPartialEq for BlockId
Auto Trait Implementations
impl RefUnwindSafe for BlockId
impl Send for BlockId
impl Sync for BlockId
impl Unpin for BlockId
impl UnwindSafe for BlockId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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