pub struct GateVector<F: PrimeField> {
gates: Vec<CircuitGate<F>>,
}Fields§
§gates: Vec<CircuitGate<F>>Implementations§
Source§impl<F> GateVector<F>where
F: PrimeField,
impl<F> GateVector<F>where
F: PrimeField,
pub fn new() -> Self
pub fn from_vec(gates: Vec<CircuitGate<F>>) -> Self
pub fn into_inner(self) -> Vec<CircuitGate<F>>
pub fn as_slice(&self) -> &[CircuitGate<F>]
pub fn iter(&self) -> Iter<'_, CircuitGate<F>>
pub fn iter_mut(&mut self) -> IterMut<'_, CircuitGate<F>>
pub fn push_gate(&mut self, gate: CircuitGate<F>)
pub fn len(&self) -> usize
pub fn get_gate(&self, index: usize) -> Option<Gate<F>>
pub fn wrap_wire(&mut self, target: Wire, replacement: Wire)
pub fn digest(&self, public_input_size: usize) -> Vec<u8> ⓘ
pub fn serialize(&self, public_input_size: usize) -> Result<String, Error>
Trait Implementations§
Source§impl<F: Clone + PrimeField> Clone for GateVector<F>
impl<F: Clone + PrimeField> Clone for GateVector<F>
Source§fn clone(&self) -> GateVector<F>
fn clone(&self) -> GateVector<F>
Returns a duplicate 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<F: Debug + PrimeField> Debug for GateVector<F>
impl<F: Debug + PrimeField> Debug for GateVector<F>
Source§impl<F: Default + PrimeField> Default for GateVector<F>
impl<F: Default + PrimeField> Default for GateVector<F>
Source§fn default() -> GateVector<F>
fn default() -> GateVector<F>
Returns the “default value” for a type. Read more
Source§impl<F> From<GateVector<F>> for Vec<CircuitGate<F>>where
F: PrimeField,
impl<F> From<GateVector<F>> for Vec<CircuitGate<F>>where
F: PrimeField,
Source§fn from(vec: GateVector<F>) -> Self
fn from(vec: GateVector<F>) -> Self
Converts to this type from the input type.
Source§impl From<GateVector<Fp<MontBackend<FqConfig, 4>, 4>>> for NapiFpGateVector
impl From<GateVector<Fp<MontBackend<FqConfig, 4>, 4>>> for NapiFpGateVector
Source§fn from(inner: CoreGateVector<Fp>) -> Self
fn from(inner: CoreGateVector<Fp>) -> Self
Converts to this type from the input type.
Source§impl From<GateVector<Fp<MontBackend<FrConfig, 4>, 4>>> for NapiFqGateVector
impl From<GateVector<Fp<MontBackend<FrConfig, 4>, 4>>> for NapiFqGateVector
Source§fn from(inner: CoreGateVector<Fq>) -> Self
fn from(inner: CoreGateVector<Fq>) -> Self
Converts to this type from the input type.
Source§impl From<NapiFpGateVector> for CoreGateVector<Fp>
impl From<NapiFpGateVector> for CoreGateVector<Fp>
Source§fn from(vector: NapiFpGateVector) -> Self
fn from(vector: NapiFpGateVector) -> Self
Converts to this type from the input type.
Source§impl From<NapiFqGateVector> for CoreGateVector<Fq>
impl From<NapiFqGateVector> for CoreGateVector<Fq>
Source§fn from(vector: NapiFqGateVector) -> Self
fn from(vector: NapiFqGateVector) -> Self
Converts to this type from the input type.
Source§impl<F> From<Vec<CircuitGate<F>>> for GateVector<F>where
F: PrimeField,
impl<F> From<Vec<CircuitGate<F>>> for GateVector<F>where
F: PrimeField,
Source§fn from(gates: Vec<CircuitGate<F>>) -> Self
fn from(gates: Vec<CircuitGate<F>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<F> Freeze for GateVector<F>
impl<F> RefUnwindSafe for GateVector<F>where
F: RefUnwindSafe,
impl<F> Send for GateVector<F>
impl<F> Sync for GateVector<F>
impl<F> Unpin for GateVector<F>where
F: Unpin,
impl<F> UnsafeUnpin for GateVector<F>
impl<F> UnwindSafe for GateVector<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