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).
The domain of the loop block (used for control block hashing).
Returns a new Loop bock instantiated with the specified body.
Returns a hash of this code block.
Returns a reference to the code block which represents the body of the loop.
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more
Uses borrowed data to replace owned data, usually by cloning.
Read more
Converts the given value to a
String
.
Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.