Struct ethcore::trace::VMOperation
source · [−]pub struct VMOperation {
pub pc: usize,
pub instruction: u8,
pub gas_cost: U256,
pub executed: Option<VMExecutedOperation>,
}
Expand description
A record of the execution of a single VM operation.
Fields
pc: usize
The program counter.
instruction: u8
The instruction executed.
gas_cost: U256
The gas cost for this instruction.
executed: Option<VMExecutedOperation>
Information concerning the execution of the operation.
Trait Implementations
sourceimpl Clone for VMOperation
impl Clone for VMOperation
sourcefn clone(&self) -> VMOperation
fn clone(&self) -> VMOperation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VMOperation
impl Debug for VMOperation
sourceimpl Decodable for VMOperation
impl Decodable for VMOperation
sourcefn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
sourceimpl Default for VMOperation
impl Default for VMOperation
sourcefn default() -> VMOperation
fn default() -> VMOperation
Returns the “default value” for a type. Read more
sourceimpl Encodable for VMOperation
impl Encodable for VMOperation
sourceimpl PartialEq<VMOperation> for VMOperation
impl PartialEq<VMOperation> for VMOperation
sourcefn eq(&self, other: &VMOperation) -> bool
fn eq(&self, other: &VMOperation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VMOperation) -> bool
fn ne(&self, other: &VMOperation) -> bool
This method tests for !=
.
impl StructuralPartialEq for VMOperation
Auto Trait Implementations
impl RefUnwindSafe for VMOperation
impl Send for VMOperation
impl Sync for VMOperation
impl Unpin for VMOperation
impl UnwindSafe for VMOperation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more