pub enum LookupPattern {
Xor,
Lookup,
RangeCheck,
ForeignFieldMul,
}
Variants§
Implementations§
source§impl LookupPattern
impl LookupPattern
sourcepub fn max_lookups_per_row(&self) -> usize
pub fn max_lookups_per_row(&self) -> usize
Returns the maximum number of lookups per row that are used by the pattern.
sourcepub fn max_joint_size(&self) -> u32
pub fn max_joint_size(&self) -> u32
Returns the maximum number of values that are used in any vector lookup in this pattern.
sourcepub fn lookups<F: Field>(&self) -> Vec<JointLookupSpec<F>>
pub fn lookups<F: Field>(&self) -> Vec<JointLookupSpec<F>>
Returns the layout of the lookups used by this pattern.
Panics
Will panic if multiplicative inverse
operation fails.
sourcepub fn table(&self) -> Option<GateLookupTable>
pub fn table(&self) -> Option<GateLookupTable>
Returns the lookup table used by the pattern, or None
if no specific table is rqeuired.
Trait Implementations§
source§impl Clone for LookupPattern
impl Clone for LookupPattern
source§fn clone(&self) -> LookupPattern
fn clone(&self) -> LookupPattern
Returns a copy 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 LookupPattern
impl Debug for LookupPattern
source§impl<'de> Deserialize<'de> for LookupPattern
impl<'de> Deserialize<'de> for LookupPattern
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'from_value_lifetime> FromValue<'from_value_lifetime> for LookupPattern
impl<'from_value_lifetime> FromValue<'from_value_lifetime> for LookupPattern
source§fn from_value(value: Value) -> Self
fn from_value(value: Value) -> Self
Convert from OCaml value
source§impl Hash for LookupPattern
impl Hash for LookupPattern
source§impl Index<LookupPattern> for LookupPatterns
impl Index<LookupPattern> for LookupPatterns
source§impl<T> Index<LookupPattern> for LookupSelectors<T>
impl<T> Index<LookupPattern> for LookupSelectors<T>
source§impl IndexMut<LookupPattern> for LookupPatterns
impl IndexMut<LookupPattern> for LookupPatterns
source§impl<T> IndexMut<LookupPattern> for LookupSelectors<T>
impl<T> IndexMut<LookupPattern> for LookupSelectors<T>
source§impl IntoEnumIterator for LookupPattern
impl IntoEnumIterator for LookupPattern
type Iterator = LookupPatternIter
fn iter() -> LookupPatternIter ⓘ
source§impl IntoValue for LookupPattern
impl IntoValue for LookupPattern
source§fn into_value(self, gc: &Runtime) -> Value
fn into_value(self, gc: &Runtime) -> Value
Convert to OCaml value
source§impl OCamlBinding for LookupPattern
impl OCamlBinding for LookupPattern
source§impl OCamlDesc for LookupPattern
impl OCamlDesc for LookupPattern
source§fn ocaml_desc(env: &Env, generics: &[&str]) -> String
fn ocaml_desc(env: &Env, generics: &[&str]) -> String
describes the type in OCaml, given the current environment [Env]
and the list of generic type parameters of the root type
(the type that makes use of this type)
source§impl Ord for LookupPattern
impl Ord for LookupPattern
source§fn cmp(&self, other: &LookupPattern) -> Ordering
fn cmp(&self, other: &LookupPattern) -> 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<LookupPattern> for LookupPattern
impl PartialEq<LookupPattern> for LookupPattern
source§fn eq(&self, other: &LookupPattern) -> bool
fn eq(&self, other: &LookupPattern) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LookupPattern> for LookupPattern
impl PartialOrd<LookupPattern> for LookupPattern
source§fn partial_cmp(&self, other: &LookupPattern) -> Option<Ordering>
fn partial_cmp(&self, other: &LookupPattern) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for LookupPattern
impl Serialize for LookupPattern
impl Copy for LookupPattern
impl Eq for LookupPattern
impl StructuralEq for LookupPattern
impl StructuralPartialEq for LookupPattern
Auto Trait Implementations§
impl RefUnwindSafe for LookupPattern
impl Send for LookupPattern
impl Sync for LookupPattern
impl Unpin for LookupPattern
impl UnwindSafe for LookupPattern
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more