Enum ethcontract::prelude::BlockId
source · 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) -> BlockId
fn from(num: BlockNumber) -> BlockId
Converts to this type from the input type.
source§impl PartialEq for BlockId
impl PartialEq for BlockId
source§impl Serialize for BlockId
impl Serialize for BlockId
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
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