Struct winter_verifier::EvaluationFrame
source · 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
sourceimpl<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, Global>,
next: Vec<E, Global>
) -> EvaluationFrame<E>
pub fn from_rows(
current: Vec<E, Global>,
next: Vec<E, Global>
) -> 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
sourceimpl<E> Clone for EvaluationFrame<E>where
E: Clone + FieldElement,
impl<E> Clone for EvaluationFrame<E>where
E: Clone + FieldElement,
sourcefn clone(&self) -> EvaluationFrame<E>
fn clone(&self) -> EvaluationFrame<E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more