Struct miden_core::code_blocks::Loop
source · pub struct Loop { /* private fields */ }
Expand description
Block for a conditional loop.
Executes the loop body while the value on the top of the stack is 1
, stops when 0
. Fails if
the top of the stack is neither 1
nor 0
, or if the execution of the body fails.
The hash of a loop block is:
hash(body_hash || padding, domain=LOOP_DOMAIN)
Where body_hash
is 4 field elements (256 bits), and padding
is 4 ZERO elements (256 bits).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Loop
impl Send for Loop
impl Sync for Loop
impl Unpin for Loop
impl UnwindSafe for Loop
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