pub struct BoundaryConstraint<F> {
pub col_idx: usize,
pub row_idx: usize,
pub target: BoundaryTarget<F>,
}Expand description
Pins a single trace cell to a target value at a specific row.
Fields§
§col_idx: usize§row_idx: usize§target: BoundaryTarget<F>Implementations§
Source§impl<F> BoundaryConstraint<F>
impl<F> BoundaryConstraint<F>
pub fn with_constant(col_idx: usize, row_idx: usize, val: F) -> Self
pub fn with_public_input( col_idx: usize, row_idx: usize, input_idx: usize, ) -> Self
Source§impl<F: TowerField> BoundaryConstraint<F>
impl<F: TowerField> BoundaryConstraint<F>
Sourcepub fn resolve_target(&self, instance: &ProgramInstance<F>) -> Result<F>
pub fn resolve_target(&self, instance: &ProgramInstance<F>) -> Result<F>
Read the pin value out of target.
Constant returns the literal;
PublicInput(idx) reads
instance.public_inputs[idx].
Sourcepub fn absorb_into<H: Hasher>(&self, transcript: &mut Transcript<H>)
pub fn absorb_into<H: Hasher>(&self, transcript: &mut Transcript<H>)
Constant values are load-bearing: a malicious prover could swap them between sessions while keeping the chiplet root valid unless the transcript binds them.
Trait Implementations§
Source§impl<F: Clone> Clone for BoundaryConstraint<F>
impl<F: Clone> Clone for BoundaryConstraint<F>
Auto Trait Implementations§
impl<F> Freeze for BoundaryConstraint<F>where
BoundaryTarget<F>: Freeze,
impl<F> RefUnwindSafe for BoundaryConstraint<F>where
BoundaryTarget<F>: RefUnwindSafe,
impl<F> Send for BoundaryConstraint<F>where
BoundaryTarget<F>: Send,
impl<F> Sync for BoundaryConstraint<F>where
BoundaryTarget<F>: Sync,
impl<F> Unpin for BoundaryConstraint<F>where
BoundaryTarget<F>: Unpin,
impl<F> UnsafeUnpin for BoundaryConstraint<F>where
BoundaryTarget<F>: UnsafeUnpin,
impl<F> UnwindSafe for BoundaryConstraint<F>where
BoundaryTarget<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