Enum kimchi::circuits::polynomials::generic::GenericGateSpec
source · pub enum GenericGateSpec<F> {
Add {
left_coeff: Option<F>,
right_coeff: Option<F>,
output_coeff: Option<F>,
},
Mul {
output_coeff: Option<F>,
mul_coeff: Option<F>,
},
Const(F),
Pub,
Plus(F),
}
Expand description
The different type of computation that are possible with a generic gate.
This type is useful to create a generic gate via the CircuitGate::create_generic_gadget
function.
Variants§
Add
Fields
Add two values.
Mul
Fields
Multiplication of two values
Const(F)
A constant, the constructor contains the constant itself
Pub
A public gate
Plus(F)
Sum a value to a constant
Trait Implementations§
source§impl<F: Clone> Clone for GenericGateSpec<F>
impl<F: Clone> Clone for GenericGateSpec<F>
source§fn clone(&self) -> GenericGateSpec<F>
fn clone(&self) -> GenericGateSpec<F>
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 moreAuto Trait Implementations§
impl<F> RefUnwindSafe for GenericGateSpec<F>where F: RefUnwindSafe,
impl<F> Send for GenericGateSpec<F>where F: Send,
impl<F> Sync for GenericGateSpec<F>where F: Sync,
impl<F> Unpin for GenericGateSpec<F>where F: Unpin,
impl<F> UnwindSafe for GenericGateSpec<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