pub struct EvaluationFrame<E>where
E: FieldElement,{ /* private fields */ }Expand description
A set of execution trace rows required for evaluation of transition constraints.
In the current implementation, an evaluation frame always contains two consecutive rows of the execution trace. It is passed in as one of the parameters into Air::evaluate_transition() function.
Implementations§
Source§impl<E> EvaluationFrame<E>where
E: FieldElement,
impl<E> EvaluationFrame<E>where
E: FieldElement,
Sourcepub fn new(num_columns: usize) -> EvaluationFrame<E>
pub fn new(num_columns: usize) -> EvaluationFrame<E>
Returns a new evaluation frame instantiated with the specified number of columns.
§Panics
Panics if num_columns is zero.
Sourcepub fn from_rows(current: Vec<E>, next: Vec<E>) -> EvaluationFrame<E>
pub fn from_rows(current: Vec<E>, next: Vec<E>) -> EvaluationFrame<E>
Returns a new evaluation frame instantiated from the provided rows.
§Panics
Panics if:
- Lengths of the provided rows are zero.
- Lengths of the provided rows are not the same.
Sourcepub fn current_mut(&mut self) -> &mut [E]
pub fn current_mut(&mut self) -> &mut [E]
Returns a mutable reference to the current row.
Trait Implementations§
Source§impl<E> Clone for EvaluationFrame<E>where
E: Clone + FieldElement,
impl<E> Clone for EvaluationFrame<E>where
E: Clone + FieldElement,
Source§fn clone(&self) -> EvaluationFrame<E>
fn clone(&self) -> EvaluationFrame<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<E> Freeze for EvaluationFrame<E>
impl<E> RefUnwindSafe for EvaluationFrame<E>where
E: RefUnwindSafe,
impl<E> Send for EvaluationFrame<E>
impl<E> Sync for EvaluationFrame<E>
impl<E> Unpin for EvaluationFrame<E>where
E: Unpin,
impl<E> UnwindSafe for EvaluationFrame<E>where
E: UnwindSafe,
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