Enum miden_core::code_blocks::CodeBlock
source · pub enum CodeBlock {
Span(Span),
Join(Join),
Split(Split),
Loop(Loop),
Call(Call),
Proxy(Proxy),
}
Expand description
TODO: add comments
Variants§
Implementations§
source§impl CodeBlock
impl CodeBlock
sourcepub fn new_span(operations: Vec<Operation>) -> Self
pub fn new_span(operations: Vec<Operation>) -> Self
Returns a new Span block instantiated with the provided operations.
sourcepub fn new_span_with_decorators(
operations: Vec<Operation>,
decorators: DecoratorList
) -> Self
pub fn new_span_with_decorators( operations: Vec<Operation>, decorators: DecoratorList ) -> Self
Returns a new Span block instantiated with the provided operations and decorator list.
sourcepub fn new_syscall(fn_hash: Digest) -> Self
pub fn new_syscall(fn_hash: Digest) -> Self
TODO: add comments