pub struct CamlCircuitGate<F> {
pub typ: GateType,
pub wires: (CamlWire, CamlWire, CamlWire, CamlWire, CamlWire, CamlWire, CamlWire),
pub coeffs: Vec<F>,
}
Fields§
§typ: GateType
§wires: (CamlWire, CamlWire, CamlWire, CamlWire, CamlWire, CamlWire, CamlWire)
§coeffs: Vec<F>
Trait Implementations§
source§impl<F, CamlF> From<&CircuitGate<F>> for CamlCircuitGate<CamlF>where
CamlF: From<F>,
F: PrimeField,
impl<F, CamlF> From<&CircuitGate<F>> for CamlCircuitGate<CamlF>where CamlF: From<F>, F: PrimeField,
source§fn from(cg: &CircuitGate<F>) -> Self
fn from(cg: &CircuitGate<F>) -> Self
Converts to this type from the input type.
source§impl<F, CamlF> From<CamlCircuitGate<CamlF>> for CircuitGate<F>where
F: From<CamlF> + PrimeField,
impl<F, CamlF> From<CamlCircuitGate<CamlF>> for CircuitGate<F>where F: From<CamlF> + PrimeField,
source§fn from(ccg: CamlCircuitGate<CamlF>) -> Self
fn from(ccg: CamlCircuitGate<CamlF>) -> Self
Converts to this type from the input type.
source§impl<F, CamlF> From<CircuitGate<F>> for CamlCircuitGate<CamlF>where
CamlF: From<F>,
F: PrimeField,
impl<F, CamlF> From<CircuitGate<F>> for CamlCircuitGate<CamlF>where CamlF: From<F>, F: PrimeField,
source§fn from(cg: CircuitGate<F>) -> Self
fn from(cg: CircuitGate<F>) -> Self
Converts to this type from the input type.
source§impl<'from_value_lifetime, F> FromValue<'from_value_lifetime> for CamlCircuitGate<F>where
Vec<F>: FromValue<'from_value_lifetime>,
F: FromValue<'from_value_lifetime>,
impl<'from_value_lifetime, F> FromValue<'from_value_lifetime> for CamlCircuitGate<F>where Vec<F>: FromValue<'from_value_lifetime>, F: FromValue<'from_value_lifetime>,
source§fn from_value(value: Value) -> Self
fn from_value(value: Value) -> Self
Convert from OCaml value
source§impl<F> IntoValue for CamlCircuitGate<F>where
Vec<F>: IntoValue,
F: IntoValue,
impl<F> IntoValue for CamlCircuitGate<F>where Vec<F>: IntoValue, F: IntoValue,
source§fn into_value(self, gc: &Runtime) -> Value
fn into_value(self, gc: &Runtime) -> Value
Convert to OCaml value
source§impl<F> OCamlBinding for CamlCircuitGate<F>where
F: OCamlDesc,
impl<F> OCamlBinding for CamlCircuitGate<F>where F: OCamlDesc,
source§impl<F> OCamlDesc for CamlCircuitGate<F>where
F: OCamlDesc,
impl<F> OCamlDesc for CamlCircuitGate<F>where F: OCamlDesc,
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)
Auto Trait Implementations§
impl<F> RefUnwindSafe for CamlCircuitGate<F>where F: RefUnwindSafe,
impl<F> Send for CamlCircuitGate<F>where F: Send,
impl<F> Sync for CamlCircuitGate<F>where F: Sync,
impl<F> Unpin for CamlCircuitGate<F>where F: Unpin,
impl<F> UnwindSafe for CamlCircuitGate<F>where F: 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