Struct miden_core::code_blocks::Dyn
source · pub struct Dyn {}
Expand description
Block for dynamic code where the target is specified by the stack.
Executes the code block referenced by the hash on top of the stack. Fails if the body is unavailable to the VM, or if the execution of the dynamically-specified code block fails.
The child of a Dyn block (the target specified by the stack) is always dynamic and does not
affect the representation of the Dyn block. Therefore all Dyn blocks are represented by the same
constant (rather than by unique hashes), which is computed as an RPO hash of two empty words
([ZERO, ZERO, ZERO, ZERO]) with a domain value of DYN_DOMAIN
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Dyn
impl Send for Dyn
impl Sync for Dyn
impl Unpin for Dyn
impl UnwindSafe for Dyn
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