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,

source

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.

source

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.
source

pub fn current(&self) -> &[E]

Returns a reference to the current row.

source

pub fn next(&self) -> &[E]

Returns a reference to the next row.

source

pub fn current_mut(&mut self) -> &mut [E]

Returns a mutable reference to the current row.

source

pub fn next_mut(&mut self) -> &mut [E]

Returns a mutable reference to the next row.

Trait Implementations§

source§

impl<E> Clone for EvaluationFrame<E>where E: Clone + FieldElement,

source§

fn clone(&self) -> EvaluationFrame<E>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<E> Debug for EvaluationFrame<E>where E: Debug + FieldElement,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto 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§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.