Enum miden_core::code_blocks::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>) -> 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
sourcepub fn new_dyncall() -> Self
pub fn new_dyncall() -> Self
TODO: add comments
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