pub struct Circuit<'a, F: PrimeField> {
pub public_input_size: usize,
pub gates: &'a [CircuitGate<F>],
}
Expand description
A circuit is specified as a public input size and a list of CircuitGate
.
Fields§
§public_input_size: usize
§gates: &'a [CircuitGate<F>]
Implementations§
Trait Implementations§
source§impl<'a, F: PrimeField> CryptoDigest for Circuit<'a, F>
impl<'a, F: PrimeField> CryptoDigest for Circuit<'a, F>
source§impl<'a, F> From<&'a ConstraintSystem<F>> for Circuit<'a, F>where
F: PrimeField,
impl<'a, F> From<&'a ConstraintSystem<F>> for Circuit<'a, F>where F: PrimeField,
source§fn from(cs: &'a ConstraintSystem<F>) -> Self
fn from(cs: &'a ConstraintSystem<F>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, F> RefUnwindSafe for Circuit<'a, F>where F: RefUnwindSafe,
impl<'a, F> Send for Circuit<'a, F>
impl<'a, F> Sync for Circuit<'a, F>
impl<'a, F> Unpin for Circuit<'a, F>
impl<'a, F> UnwindSafe for Circuit<'a, F>where F: RefUnwindSafe,
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