pub struct RangeTupleCheckerChip<const N: usize> {
pub air: RangeTupleCheckerAir<N>,
/* private fields */
}
Fields§
§air: RangeTupleCheckerAir<N>
Implementations§
Source§impl<const N: usize> RangeTupleCheckerChip<N>
impl<const N: usize> RangeTupleCheckerChip<N>
pub fn new(bus: RangeTupleCheckerBus<N>) -> Self
pub fn bus(&self) -> &RangeTupleCheckerBus<N>
pub fn sizes(&self) -> &[u32; N]
pub fn add_count(&self, ids: &[u32])
pub fn clear(&self)
pub fn generate_trace<F: Field>(&self) -> RowMajorMatrix<F>
Trait Implementations§
Source§impl<SC: StarkGenericConfig, const N: usize> Chip<SC> for RangeTupleCheckerChip<N>where
Val<SC>: PrimeField32,
impl<SC: StarkGenericConfig, const N: usize> Chip<SC> for RangeTupleCheckerChip<N>where
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<const N: usize> ChipUsageGetter for RangeTupleCheckerChip<N>
impl<const N: usize> ChipUsageGetter for RangeTupleCheckerChip<N>
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<const N: usize> Freeze for RangeTupleCheckerChip<N>
impl<const N: usize> RefUnwindSafe for RangeTupleCheckerChip<N>
impl<const N: usize> Send for RangeTupleCheckerChip<N>
impl<const N: usize> Sync for RangeTupleCheckerChip<N>
impl<const N: usize> Unpin for RangeTupleCheckerChip<N>
impl<const N: usize> UnwindSafe for RangeTupleCheckerChip<N>
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