pub enum LookupTable {
    RangeCheck15,
    RuntimeTable1,
    RuntimeTable2,
}Variants§
RangeCheck15
Fixed table, x ∈ [0, 2^15].
RuntimeTable1
A runtime table, with no explicit writes.
RuntimeTable2
A runtime table, with explicit writes.
Implementations§
Trait Implementations§
Source§impl Clone for LookupTable
 
impl Clone for LookupTable
Source§fn clone(&self) -> LookupTable
 
fn clone(&self) -> LookupTable
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 moreSource§impl Debug for LookupTable
 
impl Debug for LookupTable
Source§impl Hash for LookupTable
 
impl Hash for LookupTable
Source§impl IntoEnumIterator for LookupTable
 
impl IntoEnumIterator for LookupTable
type Iterator = LookupTableIter
fn iter() -> LookupTableIter ⓘ
Source§impl LookupTableID for LookupTable
 
impl LookupTableID for LookupTable
Source§fn ix_by_value<F: PrimeField>(&self, value: &[F]) -> Option<usize>
 
fn ix_by_value<F: PrimeField>(&self, value: &[F]) -> Option<usize>
Converts a value to its index in the fixed table.
Source§fn is_fixed(&self) -> bool
 
fn is_fixed(&self) -> bool
Identify fixed and RAMLookups with a boolean.
This can be used to identify the lookups whose table values are fixed,
like range checks.
Source§fn runtime_create_column(&self) -> bool
 
fn runtime_create_column(&self) -> bool
If a table is runtime table, 
true means we should create an
explicit extra column for it to “read” from. false means
that this table will be reading from some existing (e.g.
relation) columns, and no extra columns should be added. Read morefn all_variants() -> Vec<Self>
Source§fn to_constraint<F: Field>(&self) -> E<F>
 
fn to_constraint<F: Field>(&self) -> E<F>
Assign a unique ID to the lookup tables, as an expression.
Source§impl Ord for LookupTable
 
impl Ord for LookupTable
Source§fn cmp(&self, other: &LookupTable) -> Ordering
 
fn cmp(&self, other: &LookupTable) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LookupTable
 
impl PartialEq for LookupTable
Source§impl PartialOrd for LookupTable
 
impl PartialOrd for LookupTable
impl Copy for LookupTable
impl Eq for LookupTable
impl StructuralPartialEq for LookupTable
Auto Trait Implementations§
impl Freeze for LookupTable
impl RefUnwindSafe for LookupTable
impl Send for LookupTable
impl Sync for LookupTable
impl Unpin for LookupTable
impl UnwindSafe for LookupTable
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,
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more