Struct kimchi::circuits::constraints::FeatureFlags
source · pub struct FeatureFlags {
pub range_check0: bool,
pub range_check1: bool,
pub foreign_field_add: bool,
pub foreign_field_mul: bool,
pub xor: bool,
pub rot: bool,
pub lookup_features: LookupFeatures,
}
Expand description
Flags for optional features in the constraint system
Fields§
§range_check0: bool
RangeCheck0 gate
range_check1: bool
RangeCheck1 gate
foreign_field_add: bool
Foreign field addition gate
foreign_field_mul: bool
Foreign field multiplication gate
xor: bool
XOR gate
rot: bool
ROT gate
lookup_features: LookupFeatures
Lookup features
Implementations§
source§impl FeatureFlags
impl FeatureFlags
pub fn from_gates_and_lookup_features<F: PrimeField>( gates: &[CircuitGate<F>], lookup_features: LookupFeatures ) -> FeatureFlags
pub fn from_gates<F: PrimeField>( gates: &[CircuitGate<F>], uses_runtime_tables: bool ) -> FeatureFlags
Trait Implementations§
source§impl Clone for FeatureFlags
impl Clone for FeatureFlags
source§fn clone(&self) -> FeatureFlags
fn clone(&self) -> FeatureFlags
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 FeatureFlags
impl Debug for FeatureFlags
source§impl Default for FeatureFlags
impl Default for FeatureFlags
source§fn default() -> FeatureFlags
fn default() -> FeatureFlags
Returns an instance with all features disabled.
source§impl<'de> Deserialize<'de> for FeatureFlags
impl<'de> Deserialize<'de> for FeatureFlags
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<FeatureFlags> for JsValue
impl From<FeatureFlags> for JsValue
source§fn from(value: FeatureFlags) -> Self
fn from(value: FeatureFlags) -> Self
Converts to this type from the input type.
source§impl<'from_value_lifetime> FromValue<'from_value_lifetime> for FeatureFlags
impl<'from_value_lifetime> FromValue<'from_value_lifetime> for FeatureFlags
source§fn from_value(value: Value) -> Self
fn from_value(value: Value) -> Self
Convert from OCaml value
source§impl FromWasmAbi for FeatureFlags
impl FromWasmAbi for FeatureFlags
source§impl IntoValue for FeatureFlags
impl IntoValue for FeatureFlags
source§fn into_value(self, gc: &Runtime) -> Value
fn into_value(self, gc: &Runtime) -> Value
Convert to OCaml value
source§impl IntoWasmAbi for FeatureFlags
impl IntoWasmAbi for FeatureFlags
source§impl LongRefFromWasmAbi for FeatureFlags
impl LongRefFromWasmAbi for FeatureFlags
source§impl OCamlBinding for FeatureFlags
impl OCamlBinding for FeatureFlags
source§impl OCamlDesc for FeatureFlags
impl OCamlDesc for FeatureFlags
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 FeatureFlags
impl OptionFromWasmAbi for FeatureFlags
source§impl OptionIntoWasmAbi for FeatureFlags
impl OptionIntoWasmAbi for FeatureFlags
source§impl RefFromWasmAbi for FeatureFlags
impl RefFromWasmAbi for FeatureFlags
§type Anchor = Ref<'static, FeatureFlags>
type Anchor = Ref<'static, FeatureFlags>
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 FeatureFlags
impl RefMutFromWasmAbi for FeatureFlags
source§impl Serialize for FeatureFlags
impl Serialize for FeatureFlags
source§impl TryFromJsValue for FeatureFlags
impl TryFromJsValue for FeatureFlags
source§impl VectorFromWasmAbi for FeatureFlags
impl VectorFromWasmAbi for FeatureFlags
type Abi = <Box<[JsValue], Global> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[FeatureFlags]>
source§impl VectorIntoWasmAbi for FeatureFlags
impl VectorIntoWasmAbi for FeatureFlags
type Abi = <Box<[JsValue], Global> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[FeatureFlags]>) -> Self::Abi
source§impl WasmDescribeVector for FeatureFlags
impl WasmDescribeVector for FeatureFlags
impl Copy for FeatureFlags
Auto Trait Implementations§
impl RefUnwindSafe for FeatureFlags
impl Send for FeatureFlags
impl Sync for FeatureFlags
impl Unpin for FeatureFlags
impl UnwindSafe for FeatureFlags
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<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
.