pub struct CallNodeBuilder { /* private fields */ }Expand description
Builder for creating CallNode instances with decorators.
Implementations§
Source§impl CallNodeBuilder
impl CallNodeBuilder
Sourcepub fn new(callee: MastNodeId) -> Self
pub fn new(callee: MastNodeId) -> Self
Creates a new builder for a CallNode with the specified callee.
Sourcepub fn new_syscall(callee: MastNodeId) -> Self
pub fn new_syscall(callee: MastNodeId) -> Self
Creates a new builder for a syscall CallNode with the specified callee.
Sourcepub fn build(
self,
mast_forest: &MastForest,
) -> Result<CallNode, MastForestError>
pub fn build( self, mast_forest: &MastForest, ) -> Result<CallNode, MastForestError>
Builds the CallNode with the specified decorators.
Trait Implementations§
Source§impl Debug for CallNodeBuilder
impl Debug for CallNodeBuilder
Source§impl MastForestContributor for CallNodeBuilder
impl MastForestContributor for CallNodeBuilder
fn add_to_forest( self, forest: &mut MastForest, ) -> Result<MastNodeId, MastForestError>
Source§fn fingerprint_for_node(
&self,
forest: &MastForest,
hash_by_node_id: &impl LookupByIdx<MastNodeId, MastNodeFingerprint>,
) -> Result<MastNodeFingerprint, MastForestError>
fn fingerprint_for_node( &self, forest: &MastForest, hash_by_node_id: &impl LookupByIdx<MastNodeId, MastNodeFingerprint>, ) -> Result<MastNodeFingerprint, MastForestError>
Returns the fingerprint for this builder without constructing a MastNode. Read more
Source§fn remap_children(
self,
remapping: &impl LookupByIdx<MastNodeId, MastNodeId>,
) -> Self
fn remap_children( self, remapping: &impl LookupByIdx<MastNodeId, MastNodeId>, ) -> Self
Remap the node children to their new positions indicated by the given
lookup.
Source§fn with_before_enter(self, decorators: impl Into<Vec<DecoratorId>>) -> Self
fn with_before_enter(self, decorators: impl Into<Vec<DecoratorId>>) -> Self
Adds decorators to be executed before this node.
Source§fn with_after_exit(self, decorators: impl Into<Vec<DecoratorId>>) -> Self
fn with_after_exit(self, decorators: impl Into<Vec<DecoratorId>>) -> Self
Adds decorators to be executed after this node.
Source§fn append_before_enter(
&mut self,
decorators: impl IntoIterator<Item = DecoratorId>,
)
fn append_before_enter( &mut self, decorators: impl IntoIterator<Item = DecoratorId>, )
Appends decorators to be executed before this node. Read more
Source§fn append_after_exit(
&mut self,
decorators: impl IntoIterator<Item = DecoratorId>,
)
fn append_after_exit( &mut self, decorators: impl IntoIterator<Item = DecoratorId>, )
Appends decorators to be executed after this node. Read more
Source§fn with_digest(self, digest: Word) -> Self
fn with_digest(self, digest: Word) -> Self
Sets a digest to be forced into the built node. Read more
Auto Trait Implementations§
impl Freeze for CallNodeBuilder
impl RefUnwindSafe for CallNodeBuilder
impl Send for CallNodeBuilder
impl Sync for CallNodeBuilder
impl Unpin for CallNodeBuilder
impl UnwindSafe for CallNodeBuilder
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more