Enum cfx_vm_types::BlockHashSource
source · pub enum BlockHashSource {
Env,
State,
}
Variants§
Env
Before CIP-133, block hash is read from Env
, same as the Ethereum
State
After CIP-133, block hash is read from State
Trait Implementations§
source§impl Clone for BlockHashSource
impl Clone for BlockHashSource
source§fn clone(&self) -> BlockHashSource
fn clone(&self) -> BlockHashSource
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 BlockHashSource
impl Debug for BlockHashSource
source§impl Hash for BlockHashSource
impl Hash for BlockHashSource
source§impl PartialEq for BlockHashSource
impl PartialEq for BlockHashSource
source§fn eq(&self, other: &BlockHashSource) -> bool
fn eq(&self, other: &BlockHashSource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BlockHashSource
impl Eq for BlockHashSource
impl StructuralPartialEq for BlockHashSource
Auto Trait Implementations§
impl RefUnwindSafe for BlockHashSource
impl Send for BlockHashSource
impl Sync for BlockHashSource
impl Unpin for BlockHashSource
impl UnwindSafe for BlockHashSource
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