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: Opcode
The opcode
input: Vec<u8>
Additional bytes that are part of the Operation (only for PUSH)
offset: u32
The offset in the bytecode
Implementations§
Trait Implementations§
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
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