pub struct VariableRangeCheckerChip {
pub air: VariableRangeCheckerAir,
/* private fields */
}
Fields§
§air: VariableRangeCheckerAir
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)
pub fn generate_trace<F: Field>(&self) -> RowMajorMatrix<F>
Trait Implementations§
Source§impl<SC: StarkGenericConfig> Chip<SC> for VariableRangeCheckerChipwhere
Val<SC>: PrimeField32,
impl<SC: StarkGenericConfig> Chip<SC> for VariableRangeCheckerChipwhere
Val<SC>: PrimeField32,
fn air(&self) -> Arc<dyn AnyRap<SC>>
Source§fn generate_air_proof_input(self) -> AirProofInput<SC>
fn generate_air_proof_input(self) -> AirProofInput<SC>
Generate all necessary input for proving a single AIR.
fn generate_air_proof_input_with_id( self, air_id: usize, ) -> (usize, AirProofInput<SC>)
Source§impl ChipUsageGetter for VariableRangeCheckerChip
impl ChipUsageGetter for VariableRangeCheckerChip
fn air_name(&self) -> String
Source§fn constant_trace_height(&self) -> Option<usize>
fn constant_trace_height(&self) -> Option<usize>
If the chip has a state-independent trace height that is determined
upon construction, return this height. This is used to distinguish
“static” versus “dynamic” usage metrics.
Source§fn current_trace_height(&self) -> usize
fn current_trace_height(&self) -> usize
Height of used rows in the main trace.
Source§fn trace_width(&self) -> usize
fn trace_width(&self) -> usize
Width of the main trace
Source§fn current_trace_cells(&self) -> usize
fn current_trace_cells(&self) -> usize
For metrics collection
Auto Trait Implementations§
impl Freeze for VariableRangeCheckerChip
impl RefUnwindSafe for VariableRangeCheckerChip
impl Send for VariableRangeCheckerChip
impl Sync for VariableRangeCheckerChip
impl Unpin for VariableRangeCheckerChip
impl UnwindSafe for VariableRangeCheckerChip
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> 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