pub struct AffineVirtualTerm { /* private fields */ }Expand description
One term in an affine virtual binary-polynomial expression.
Implementations§
Source§impl AffineVirtualTerm
impl AffineVirtualTerm
Sourcepub fn new(source_col: usize, coefficient: i64) -> Self
pub fn new(source_col: usize, coefficient: i64) -> Self
Construct an unshifted term coefficient * source_col.
Sourcepub fn new_shifted(
source_col: usize,
coefficient: i64,
row_shift: usize,
) -> Self
pub fn new_shifted( source_col: usize, coefficient: i64, row_shift: usize, ) -> Self
Construct a shifted term coefficient * source_col[row + row_shift].
UairSignature::with_affine_virtual_specs currently rejects shifted
terms until the protocol binds row-shifted source projections.
pub fn source_col(&self) -> usize
pub fn coefficient(&self) -> i64
pub fn row_shift(&self) -> usize
Trait Implementations§
Source§impl Clone for AffineVirtualTerm
impl Clone for AffineVirtualTerm
Source§fn clone(&self) -> AffineVirtualTerm
fn clone(&self) -> AffineVirtualTerm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AffineVirtualTerm
impl Debug for AffineVirtualTerm
Source§impl Hash for AffineVirtualTerm
impl Hash for AffineVirtualTerm
Source§impl PartialEq for AffineVirtualTerm
impl PartialEq for AffineVirtualTerm
Source§fn eq(&self, other: &AffineVirtualTerm) -> bool
fn eq(&self, other: &AffineVirtualTerm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AffineVirtualTerm
impl StructuralPartialEq for AffineVirtualTerm
Auto Trait Implementations§
impl Freeze for AffineVirtualTerm
impl RefUnwindSafe for AffineVirtualTerm
impl Send for AffineVirtualTerm
impl Sync for AffineVirtualTerm
impl Unpin for AffineVirtualTerm
impl UnsafeUnpin for AffineVirtualTerm
impl UnwindSafe for AffineVirtualTerm
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