pub struct WitnessLayout<F: Field> { /* private fields */ }Implementations§
Source§impl<F: Field> WitnessLayout<F>
impl<F: Field> WitnessLayout<F>
pub fn sparse( constants: Vec<F>, n_inout: u32, n_precommit: u32, derived_alive: &[bool], private_alive: &[bool], ) -> Self
pub fn with_blinding(self, info: BlindingInfo) -> Self
pub const fn public_size(&self) -> usize
pub const fn precommit_size(&self) -> usize
pub const fn private_size(&self) -> usize
pub const fn n_constants(&self) -> usize
pub const fn n_inout(&self) -> usize
pub const fn n_derived(&self) -> usize
pub const fn n_precommit(&self) -> usize
pub const fn n_private(&self) -> usize
pub const fn log_public(&self) -> u32
pub const fn log_precommit(&self) -> u32
pub const fn log_private(&self) -> u32
pub fn get(&self, wire: &ConstraintWire) -> Option<WitnessIndex>
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for WitnessLayout<F>
impl<F> RefUnwindSafe for WitnessLayout<F>where
F: RefUnwindSafe,
impl<F> Send for WitnessLayout<F>
impl<F> Sync for WitnessLayout<F>
impl<F> Unpin for WitnessLayout<F>where
F: Unpin,
impl<F> UnsafeUnpin for WitnessLayout<F>
impl<F> UnwindSafe for WitnessLayout<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more