Struct miden_core::code_blocks::Split
source · pub struct Split { /* private fields */ }
Expand description
Block for conditional execution.
Executes the first branch if the top of the stack is 1
or the second branch if 0
. Fails if
the top of the stack is neither 1
or 0
or if the branch execution fails.
The hash of a split block is:
hash(true_branch_hash || false_branch_hash, domain=SPLIT_DOMAIN)
Where true_branch_hash
and false_branch_hash
are 4 field elements (256 bits) each.
Implementations§
source§impl Split
impl Split
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Split
impl Send for Split
impl Sync for Split
impl Unpin for Split
impl UnwindSafe for Split
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