pub enum Decorator {
AsmOp(AssemblyOp),
Debug(DebugOptions),
Trace(u32),
}
Expand description
A set of decorators which can be executed by the VM.
Executing a decorator does not affect the state of the main VM components such as operand stack and memory.
Executing decorators does not advance the VM clock. As such, many decorators can be executed in a single VM cycle.
Variants§
AsmOp(AssemblyOp)
Adds information about the assembly instruction at a particular index (only applicable in debug mode).
Debug(DebugOptions)
Prints out information about the state of the VM based on the specified options. This decorator is executed only in debug mode.
Trace(u32)
Emits a trace to the host.
Implementations§
Source§impl Decorator
impl Decorator
pub fn fingerprint(&self) -> DecoratorFingerprint
Trait Implementations§
Source§impl PrettyPrint for Decorator
impl PrettyPrint for Decorator
Source§fn to_pretty_string(&self) -> String
fn to_pretty_string(&self) -> String
Source§fn pretty_print(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn pretty_print(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Pretty-print this object to the given core::fmt::Formatter. Read more
impl Eq for Decorator
impl StructuralPartialEq for Decorator
Auto Trait Implementations§
impl Freeze for Decorator
impl RefUnwindSafe for Decorator
impl Send for Decorator
impl Sync for Decorator
impl Unpin for Decorator
impl UnwindSafe for Decorator
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