pub struct Constraint { /* private fields */ }Expand description
Constraint representation containing the coefficients of a polynomial evaluation
Implementations§
Source§impl Constraint
impl Constraint
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Initiate the composition of a new selector description of a circuit.
Sourcepub fn mult<T: Into<BlsScalar>>(self, s: T) -> Self
pub fn mult<T: Into<BlsScalar>>(self, s: T) -> Self
Set s as the polynomial selector for the multiplication coefficient.
Sourcepub fn left<T: Into<BlsScalar>>(self, s: T) -> Self
pub fn left<T: Into<BlsScalar>>(self, s: T) -> Self
Set s as the polynomial selector for the left coefficient.
Sourcepub fn right<T: Into<BlsScalar>>(self, s: T) -> Self
pub fn right<T: Into<BlsScalar>>(self, s: T) -> Self
Set s as the polynomial selector for the right coefficient.
Sourcepub fn output<T: Into<BlsScalar>>(self, s: T) -> Self
pub fn output<T: Into<BlsScalar>>(self, s: T) -> Self
Set s as the polynomial selector for the output coefficient.
Sourcepub fn fourth<T: Into<BlsScalar>>(self, s: T) -> Self
pub fn fourth<T: Into<BlsScalar>>(self, s: T) -> Self
Set s as the polynomial selector for the fourth (advice) coefficient.
Sourcepub fn constant<T: Into<BlsScalar>>(self, s: T) -> Self
pub fn constant<T: Into<BlsScalar>>(self, s: T) -> Self
Set s as the polynomial selector for the constant of the constraint.
Trait Implementations§
Source§impl AsRef<[Scalar]> for Constraint
impl AsRef<[Scalar]> for Constraint
Source§impl Clone for Constraint
impl Clone for Constraint
Source§fn clone(&self) -> Constraint
fn clone(&self) -> Constraint
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 Constraint
impl Debug for Constraint
Source§impl Default for Constraint
impl Default for Constraint
Source§impl PartialEq for Constraint
impl PartialEq for Constraint
impl Copy for Constraint
impl Eq for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
Blanket Implementations§
Source§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8] ⓘ
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