Enum miden_objects::vm::CodeBlock
source · pub enum CodeBlock {
Span(Span),
Join(Join),
Split(Split),
Loop(Loop),
Call(Call),
Dyn(Dyn),
Proxy(Proxy),
}Expand description
TODO: add comments
Variants§
Implementations§
source§impl CodeBlock
impl CodeBlock
sourcepub fn new_span(operations: Vec<Operation>) -> CodeBlock
pub fn new_span(operations: Vec<Operation>) -> CodeBlock
Returns a new Span block instantiated with the provided operations.
sourcepub fn new_span_with_decorators(
operations: Vec<Operation>,
decorators: Vec<(usize, Decorator)>
) -> CodeBlock
pub fn new_span_with_decorators( operations: Vec<Operation>, decorators: Vec<(usize, Decorator)> ) -> CodeBlock
Returns a new Span block instantiated with the provided operations and decorator list.
sourcepub fn new_syscall(fn_hash: RpoDigest) -> CodeBlock
pub fn new_syscall(fn_hash: RpoDigest) -> CodeBlock
TODO: add comments
sourcepub fn new_dyncall() -> CodeBlock
pub fn new_dyncall() -> CodeBlock
TODO: add comments
sourcepub fn domain(&self) -> BaseElement
pub fn domain(&self) -> BaseElement
Returns the domain of the code block
Trait Implementations§
source§impl PartialEq for CodeBlock
impl PartialEq for CodeBlock
impl Eq for CodeBlock
impl StructuralPartialEq for CodeBlock
Auto Trait Implementations§
impl RefUnwindSafe for CodeBlock
impl Send for CodeBlock
impl Sync for CodeBlock
impl Unpin for CodeBlock
impl UnwindSafe for CodeBlock
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