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_public_input( col_idx: usize, row_idx: usize, public_input_idx: usize, ) -> Self
pub fn with_constant(col_idx: usize, row_idx: usize, val: F) -> 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>
Source§fn clone(&self) -> BoundaryConstraint<F>
fn clone(&self) -> BoundaryConstraint<F>
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 moreAuto Trait Implementations§
impl<F> Freeze for BoundaryConstraint<F>where
F: Freeze,
impl<F> RefUnwindSafe for BoundaryConstraint<F>where
F: RefUnwindSafe,
impl<F> Send for BoundaryConstraint<F>where
F: Send,
impl<F> Sync for BoundaryConstraint<F>where
F: Sync,
impl<F> Unpin for BoundaryConstraint<F>where
F: Unpin,
impl<F> UnsafeUnpin for BoundaryConstraint<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for BoundaryConstraint<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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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