pub enum BlockId {
Hash(H256),
Number(BlockNumber),
}
Expand description
Block Identifier
Variants§
Trait Implementations§
Source§impl From<BlockNumber> for BlockId
impl From<BlockNumber> for BlockId
Source§fn 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 Freeze for BlockId
impl RefUnwindSafe for BlockId
impl Send for BlockId
impl Sync for BlockId
impl Unpin for BlockId
impl UnwindSafe for BlockId
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