Struct evm_disassembler::types::Operation
source · pub struct Operation {
pub opcode: Opcode,
pub input: Vec<u8>,
pub offset: u32,
}Expand description
A decoded operation
An operation is represented by the combination of an opcode, the offset in the bytecode and any additional bytes that are part of the operation (only for PUSH operations).
Fields§
§opcode: OpcodeThe opcode
input: Vec<u8>Additional bytes that are part of the Operation (only for PUSH)
offset: u32The offset in the bytecode
Implementations§
Trait Implementations§
source§impl PartialEq for Operation
impl PartialEq for Operation
impl Eq for Operation
impl StructuralEq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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