pub struct VariableRangeCheckerChip {
pub air: VariableRangeCheckerAir,
pub count: Vec<AtomicU32>,
}Fields§
§air: VariableRangeCheckerAir§count: Vec<AtomicU32>Implementations§
Source§impl VariableRangeCheckerChip
impl VariableRangeCheckerChip
pub fn new(bus: VariableRangeCheckerBus) -> Self
pub fn bus(&self) -> VariableRangeCheckerBus
pub fn range_max_bits(&self) -> usize
pub fn air_width(&self) -> usize
pub fn add_count(&self, value: u32, max_bits: usize)
pub fn clear(&self)
Sourcepub fn generate_trace<F: Field>(&self) -> RowMajorMatrix<F>
pub fn generate_trace<F: Field>(&self) -> RowMajorMatrix<F>
Generates trace and resets the internal counters all to 0.
Trait Implementations§
Source§impl<R, SC: StarkProtocolConfig> Chip<R, CpuBackend<SC>> for VariableRangeCheckerChipwhere
Val<SC>: PrimeField32,
impl<R, SC: StarkProtocolConfig> Chip<R, CpuBackend<SC>> for VariableRangeCheckerChipwhere
Val<SC>: PrimeField32,
Source§fn generate_proving_ctx(&self, _: R) -> AirProvingContext<CpuBackend<SC>>
fn generate_proving_ctx(&self, _: R) -> AirProvingContext<CpuBackend<SC>>
Generates trace and resets the internal counters all to 0.
Source§fn constant_trace_height(&self) -> Option<usize>
fn constant_trace_height(&self) -> Option<usize>
If this chip always produces a trace with a fixed number of rows (independent of execution),
return that height. Used by metered execution to avoid resetting constant-height chips
on segment boundaries.
Auto Trait Implementations§
impl Freeze for VariableRangeCheckerChip
impl RefUnwindSafe for VariableRangeCheckerChip
impl Send for VariableRangeCheckerChip
impl Sync for VariableRangeCheckerChip
impl Unpin for VariableRangeCheckerChip
impl UnsafeUnpin for VariableRangeCheckerChip
impl UnwindSafe for VariableRangeCheckerChip
Blanket Implementations§
Source§impl<R, PB, C> AnyChip<R, PB> for Cwhere
PB: ProverBackend,
C: Chip<R, PB> + 'static,
impl<R, PB, C> AnyChip<R, PB> for Cwhere
PB: ProverBackend,
C: Chip<R, PB> + 'static,
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> 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