pub struct Lookup<F: Field> {
pub kind: Kind,
pub element_exprs: Vec<Vec<SymbolicExpression<F>>>,
pub multiplicities_exprs: Vec<SymbolicExpression<F>>,
pub columns: Vec<usize>,
}Expand description
A structure that holds the lookup data necessary to generate lookup contexts. It is shared between the prover and the verifier.
Fields§
§kind: KindType of lookup: local or global
element_exprs: Vec<Vec<SymbolicExpression<F>>>Elements being read (consumed from the table). Each Vec<SymbolicExpression<F>>
actually represents a tuple of elements that are bundled together to make one lookup.
multiplicities_exprs: Vec<SymbolicExpression<F>>Multiplicities for the elements. Note that Lagrange selectors may not be normalized, and so cannot be used as proper filters in the multiplicities.
columns: Vec<usize>The column index in the permutation trace for this lookup’s running sum
Implementations§
Source§impl<F: Field> Lookup<F>
impl<F: Field> Lookup<F>
Sourcepub const fn new(
kind: Kind,
element_exprs: Vec<Vec<SymbolicExpression<F>>>,
multiplicities_exprs: Vec<SymbolicExpression<F>>,
columns: Vec<usize>,
) -> Self
pub const fn new( kind: Kind, element_exprs: Vec<Vec<SymbolicExpression<F>>>, multiplicities_exprs: Vec<SymbolicExpression<F>>, columns: Vec<usize>, ) -> Self
Creates a new lookup with the specified column.
§Arguments
elements- Elements from either the main execution trace or a lookup table.multiplicities- How many times eachelementshould appearcolumn- The column index in the permutation trace for this lookup
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Lookup<F>
impl<F> RefUnwindSafe for Lookup<F>where
F: RefUnwindSafe,
impl<F> Send for Lookup<F>
impl<F> Sync for Lookup<F>
impl<F> Unpin for Lookup<F>where
F: Unpin,
impl<F> UnsafeUnpin for Lookup<F>
impl<F> UnwindSafe for Lookup<F>where
F: UnwindSafe + RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more