pub struct DynNode { /* private fields */ }Expand description
A Dyn node specifies that the node to be executed next is defined dynamically via the stack.
Implementations§
Source§impl DynNode
Constants
impl DynNode
Constants
Sourcepub const DYN_DOMAIN: Felt
pub const DYN_DOMAIN: Felt
The domain of the Dyn block (used for control block hashing).
Sourcepub const DYNCALL_DOMAIN: Felt
pub const DYNCALL_DOMAIN: Felt
The domain of the Dyncall block (used for control block hashing).
Source§impl DynNode
Default digest constants
impl DynNode
Default digest constants
Sourcepub const DYNCALL_DEFAULT_DIGEST: Word
pub const DYNCALL_DEFAULT_DIGEST: Word
The default digest for a DynNode representing a dyncall operation.
Sourcepub const DYN_DEFAULT_DIGEST: Word
pub const DYN_DEFAULT_DIGEST: Word
The default digest for a DynNode representing a dynexec operation.
Trait Implementations§
Source§impl MastNodeErrorContext for DynNode
impl MastNodeErrorContext for DynNode
Source§fn decorators<'a>(
&'a self,
forest: &'a MastForest,
) -> impl Iterator<Item = DecoratedOpLink> + 'a
fn decorators<'a>( &'a self, forest: &'a MastForest, ) -> impl Iterator<Item = DecoratedOpLink> + 'a
The list of decorators tied to this node, along with their associated index. Read more
Source§fn get_assembly_op<'m>(
&self,
mast_forest: &'m MastForest,
target_op_idx: Option<usize>,
) -> Option<&'m AssemblyOp>
fn get_assembly_op<'m>( &self, mast_forest: &'m MastForest, target_op_idx: Option<usize>, ) -> Option<&'m AssemblyOp>
Returns the
AssemblyOp associated with this node and operation (if provided), if any. Read moreSource§impl MastNodeExt for DynNode
impl MastNodeExt for DynNode
Source§fn before_enter<'a>(&'a self, forest: &'a MastForest) -> &'a [DecoratorId]
fn before_enter<'a>(&'a self, forest: &'a MastForest) -> &'a [DecoratorId]
Returns the decorators to be executed before this node is executed.
Source§fn after_exit<'a>(&'a self, forest: &'a MastForest) -> &'a [DecoratorId]
fn after_exit<'a>(&'a self, forest: &'a MastForest) -> &'a [DecoratorId]
Returns the decorators to be executed after this node is executed.
Source§type Builder = DynNodeBuilder
type Builder = DynNodeBuilder
Converts this node into its corresponding builder, reusing allocated data where possible.
Source§fn to_display<'a>(
&'a self,
mast_forest: &'a MastForest,
) -> Box<dyn Display + 'a>
fn to_display<'a>( &'a self, mast_forest: &'a MastForest, ) -> Box<dyn Display + 'a>
Returns a display formatter for this node.
Source§fn to_pretty_print<'a>(
&'a self,
mast_forest: &'a MastForest,
) -> Box<dyn PrettyPrint + 'a>
fn to_pretty_print<'a>( &'a self, mast_forest: &'a MastForest, ) -> Box<dyn PrettyPrint + 'a>
Returns a pretty printer for this node.
Source§fn has_children(&self) -> bool
fn has_children(&self) -> bool
Returns true if the this node has children.
Source§fn append_children_to(&self, _target: &mut Vec<MastNodeId>)
fn append_children_to(&self, _target: &mut Vec<MastNodeId>)
Appends the NodeIds of the children of this node, if any, to the vector.
Source§fn for_each_child<F>(&self, _f: F)where
F: FnMut(MastNodeId),
fn for_each_child<F>(&self, _f: F)where
F: FnMut(MastNodeId),
Executes the given closure for each child of this node.
fn to_builder(self, forest: &MastForest) -> Self::Builder
Source§fn verify_node_in_forest(&self, forest: &MastForest)
fn verify_node_in_forest(&self, forest: &MastForest)
Verifies that this node is stored at the ID in its decorators field in the forest.
impl Eq for DynNode
impl StructuralPartialEq for DynNode
Auto Trait Implementations§
impl Freeze for DynNode
impl RefUnwindSafe for DynNode
impl Send for DynNode
impl Sync for DynNode
impl Unpin for DynNode
impl UnwindSafe for DynNode
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