pub struct LookupPatterns {
pub xor: bool,
pub lookup: bool,
pub range_check: bool,
pub foreign_field_mul: bool,
}
Expand description
Flags for each of the hard-coded lookup patterns.
Fields§
§xor: bool
§lookup: bool
§range_check: bool
§foreign_field_mul: bool
Implementations§
source§impl LookupPatterns
impl LookupPatterns
pub fn from_gates<F: PrimeField>(gates: &[CircuitGate<F>]) -> LookupPatterns
sourcepub fn joint_lookups_used(&self) -> bool
pub fn joint_lookups_used(&self) -> bool
Check what kind of lookups, if any, are used by this circuit.
Trait Implementations§
source§impl Clone for LookupPatterns
impl Clone for LookupPatterns
source§fn clone(&self) -> LookupPatterns
fn clone(&self) -> LookupPatterns
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 LookupPatterns
impl Debug for LookupPatterns
source§impl Default for LookupPatterns
impl Default for LookupPatterns
source§fn default() -> LookupPatterns
fn default() -> LookupPatterns
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LookupPatterns
impl<'de> Deserialize<'de> for LookupPatterns
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<LookupPatterns> for JsValue
impl From<LookupPatterns> for JsValue
source§fn from(value: LookupPatterns) -> Self
fn from(value: LookupPatterns) -> Self
Converts to this type from the input type.
source§impl<'from_value_lifetime> FromValue<'from_value_lifetime> for LookupPatterns
impl<'from_value_lifetime> FromValue<'from_value_lifetime> for LookupPatterns
source§fn from_value(value: Value) -> Self
fn from_value(value: Value) -> Self
Convert from OCaml value
source§impl FromWasmAbi for LookupPatterns
impl FromWasmAbi for LookupPatterns
source§impl Index<LookupPattern> for LookupPatterns
impl Index<LookupPattern> for LookupPatterns
source§impl IndexMut<LookupPattern> for LookupPatterns
impl IndexMut<LookupPattern> for LookupPatterns
source§impl IntoIterator for LookupPatterns
impl IntoIterator for LookupPatterns
§type Item = LookupPattern
type Item = LookupPattern
The type of the elements being iterated over.
§type IntoIter = IntoIter<<LookupPatterns as IntoIterator>::Item, Global>
type IntoIter = IntoIter<<LookupPatterns as IntoIterator>::Item, Global>
Which kind of iterator are we turning this into?
source§impl IntoValue for LookupPatterns
impl IntoValue for LookupPatterns
source§fn into_value(self, gc: &Runtime) -> Value
fn into_value(self, gc: &Runtime) -> Value
Convert to OCaml value
source§impl IntoWasmAbi for LookupPatterns
impl IntoWasmAbi for LookupPatterns
source§impl LongRefFromWasmAbi for LookupPatterns
impl LongRefFromWasmAbi for LookupPatterns
source§impl OCamlBinding for LookupPatterns
impl OCamlBinding for LookupPatterns
source§impl OCamlDesc for LookupPatterns
impl OCamlDesc for LookupPatterns
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 OptionFromWasmAbi for LookupPatterns
impl OptionFromWasmAbi for LookupPatterns
source§impl OptionIntoWasmAbi for LookupPatterns
impl OptionIntoWasmAbi for LookupPatterns
source§impl PartialEq<LookupPatterns> for LookupPatterns
impl PartialEq<LookupPatterns> for LookupPatterns
source§fn eq(&self, other: &LookupPatterns) -> bool
fn eq(&self, other: &LookupPatterns) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefFromWasmAbi for LookupPatterns
impl RefFromWasmAbi for LookupPatterns
§type Anchor = Ref<'static, LookupPatterns>
type Anchor = Ref<'static, LookupPatterns>
The type that holds the reference to
Self
for the duration of the
invocation of the function that has an &Self
parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.source§impl RefMutFromWasmAbi for LookupPatterns
impl RefMutFromWasmAbi for LookupPatterns
source§impl Serialize for LookupPatterns
impl Serialize for LookupPatterns
source§impl TryFromJsValue for LookupPatterns
impl TryFromJsValue for LookupPatterns
source§impl VectorFromWasmAbi for LookupPatterns
impl VectorFromWasmAbi for LookupPatterns
type Abi = <Box<[JsValue], Global> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[LookupPatterns]>
source§impl VectorIntoWasmAbi for LookupPatterns
impl VectorIntoWasmAbi for LookupPatterns
type Abi = <Box<[JsValue], Global> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[LookupPatterns]>) -> Self::Abi
source§impl WasmDescribeVector for LookupPatterns
impl WasmDescribeVector for LookupPatterns
impl Copy for LookupPatterns
impl Eq for LookupPatterns
impl StructuralEq for LookupPatterns
impl StructuralPartialEq for LookupPatterns
Auto Trait Implementations§
impl RefUnwindSafe for LookupPatterns
impl Send for LookupPatterns
impl Sync for LookupPatterns
impl Unpin for LookupPatterns
impl UnwindSafe for LookupPatterns
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
§impl<I> Iterable for Iwhere
I: IntoIterator + Copy + Send + Sync,
<I as IntoIterator>::IntoIter: ExactSizeIterator,
impl<I> Iterable for Iwhere I: IntoIterator + Copy + Send + Sync, <I as IntoIterator>::IntoIter: ExactSizeIterator,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.