pub enum LookupTable<Ff> {
RangeCheck15,
RangeCheck14Abs,
RangeCheck9Abs,
RangeCheckFfHighest(PhantomData<Ff>),
}
Expand description
Enumeration of concrete lookup tables used in FEC circuit.
Variants§
RangeCheck15
x ∈ [0, 2^15]
RangeCheck14Abs
x ∈ [-2^14, 2^14-1]
RangeCheck9Abs
x ∈ [-2^9, 2^9-1]
RangeCheckFfHighest(PhantomData<Ff>)
x ∈ [0, ff_highest] where ff_highest is the highest 15-bit
limb of the modulus of the foreign field Ff
.
Implementations§
Trait Implementations§
Source§impl<Ff: Clone> Clone for LookupTable<Ff>
impl<Ff: Clone> Clone for LookupTable<Ff>
Source§fn clone(&self) -> LookupTable<Ff>
fn clone(&self) -> LookupTable<Ff>
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<Ff: Debug> Debug for LookupTable<Ff>
impl<Ff: Debug> Debug for LookupTable<Ff>
Source§impl<Ff: Hash> Hash for LookupTable<Ff>
impl<Ff: Hash> Hash for LookupTable<Ff>
Source§impl<Ff> IntoEnumIterator for LookupTable<Ff>
impl<Ff> IntoEnumIterator for LookupTable<Ff>
type Iterator = LookupTableIter<Ff>
fn iter() -> LookupTableIter<Ff> ⓘ
Source§impl<Ff: PrimeField> LookupTableID for LookupTable<Ff>
impl<Ff: PrimeField> LookupTableID for LookupTable<Ff>
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 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<Ff: Ord> Ord for LookupTable<Ff>
impl<Ff: Ord> Ord for LookupTable<Ff>
Source§fn cmp(&self, other: &LookupTable<Ff>) -> Ordering
fn cmp(&self, other: &LookupTable<Ff>) -> 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<Ff: PartialEq> PartialEq for LookupTable<Ff>
impl<Ff: PartialEq> PartialEq for LookupTable<Ff>
Source§impl<Ff: PartialOrd> PartialOrd for LookupTable<Ff>
impl<Ff: PartialOrd> PartialOrd for LookupTable<Ff>
impl<Ff: Copy> Copy for LookupTable<Ff>
impl<Ff: Eq> Eq for LookupTable<Ff>
impl<Ff> StructuralPartialEq for LookupTable<Ff>
Auto Trait Implementations§
impl<Ff> Freeze for LookupTable<Ff>
impl<Ff> RefUnwindSafe for LookupTable<Ff>where
Ff: RefUnwindSafe,
impl<Ff> Send for LookupTable<Ff>where
Ff: Send,
impl<Ff> Sync for LookupTable<Ff>where
Ff: Sync,
impl<Ff> Unpin for LookupTable<Ff>where
Ff: Unpin,
impl<Ff> UnwindSafe for LookupTable<Ff>where
Ff: 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
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