Enum miden_core::Decorator
source · pub enum Decorator {
Advice(AdviceInjector),
AsmOp(AssemblyOp),
Debug(DebugOptions),
}
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. However, decorators may modify the advice provider.
Executing decorators does not advance the VM clock. As such, many decorators can be executed in a single VM cycle.
Variants§
Advice(AdviceInjector)
Injects new data into the advice provider, as specified by the injector.
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.
Trait Implementations§
source§impl PartialEq for Decorator
impl PartialEq for Decorator
impl Eq for Decorator
impl StructuralEq for Decorator
impl StructuralPartialEq for Decorator
Auto Trait Implementations§
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