pub struct PathShapeVar { /* private fields */ }Trait Implementations§
Source§impl AllocVar<(u8, Result<u64, SynthesisError>), Fp256<FrParameters>> for PathShapeVar
impl AllocVar<(u8, Result<u64, SynthesisError>), Fp256<FrParameters>> for PathShapeVar
Source§fn new_variable<T: Borrow<(u8, Result<u64, SynthesisError>)>>(
cs: impl Into<Namespace<CircuitField>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
mode: AllocationMode,
) -> Result<Self, SynthesisError>
fn new_variable<T: Borrow<(u8, Result<u64, SynthesisError>)>>( cs: impl Into<Namespace<CircuitField>>, f: impl FnOnce() -> Result<T, SynthesisError>, mode: AllocationMode, ) -> Result<Self, SynthesisError>
Allocates a new variable of type
Self in the ConstraintSystem cs.
The mode of allocation is decided by mode.Source§fn new_constant(
cs: impl Into<Namespace<F>>,
t: impl Borrow<V>,
) -> Result<Self, SynthesisError>
fn new_constant( cs: impl Into<Namespace<F>>, t: impl Borrow<V>, ) -> Result<Self, SynthesisError>
Source§fn new_input<T>(
cs: impl Into<Namespace<F>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
) -> Result<Self, SynthesisError>where
T: Borrow<V>,
fn new_input<T>(
cs: impl Into<Namespace<F>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
) -> Result<Self, SynthesisError>where
T: Borrow<V>,
Allocates a new public input of type
Self in the ConstraintSystem
cs.Source§fn new_witness<T>(
cs: impl Into<Namespace<F>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
) -> Result<Self, SynthesisError>where
T: Borrow<V>,
fn new_witness<T>(
cs: impl Into<Namespace<F>>,
f: impl FnOnce() -> Result<T, SynthesisError>,
) -> Result<Self, SynthesisError>where
T: Borrow<V>,
Allocates a new private witness of type
Self in the ConstraintSystem
cs.Source§impl Clone for PathShapeVar
impl Clone for PathShapeVar
Source§fn clone(&self) -> PathShapeVar
fn clone(&self) -> PathShapeVar
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 Debug for PathShapeVar
impl Debug for PathShapeVar
Source§impl Display for PathShapeVar
Available on crate feature std only.
impl Display for PathShapeVar
Available on crate feature
std only.Auto Trait Implementations§
impl Freeze for PathShapeVar
impl !RefUnwindSafe for PathShapeVar
impl !Send for PathShapeVar
impl !Sync for PathShapeVar
impl Unpin for PathShapeVar
impl !UnwindSafe for PathShapeVar
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