Struct miden_core::mast::DynNode
source · pub struct DynNode;Expand description
A Dyn node specifies that the node to be executed next is defined dynamically via the stack.
Implementations§
source§impl DynNode
impl DynNode
Public accessors
sourcepub fn digest(&self) -> RpoDigest
pub fn digest(&self) -> RpoDigest
Returns a commitment to a Dyn node.
The commitment is computed by hashing two empty words ([ZERO; 4]) in the domain defined by Self::DOMAIN, i.e.:
Hasher::merge_in_domain(&[Digest::default(), Digest::default()], DynNode::DOMAIN);Trait Implementations§
source§impl PrettyPrint for DynNode
impl PrettyPrint for DynNode
source§fn to_pretty_string(&self) -> String
fn to_pretty_string(&self) -> String
source§fn pretty_print(&self, f: &mut Formatter<'_>) -> Result<(), Error>
fn pretty_print(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Pretty-print this object to the given core::fmt::Formatter. Read more
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)