pub struct BitwiseOperationLookupChip<const NUM_BITS: usize> {
pub air: BitwiseOperationLookupAir<NUM_BITS>,
/* private fields */
}
Fields§
§air: BitwiseOperationLookupAir<NUM_BITS>
Implementations§
Source§impl<const NUM_BITS: usize> BitwiseOperationLookupChip<NUM_BITS>
impl<const NUM_BITS: usize> BitwiseOperationLookupChip<NUM_BITS>
pub fn new(bus: BitwiseOperationLookupBus) -> Self
pub fn bus(&self) -> BitwiseOperationLookupBus
pub fn air_width(&self) -> usize
pub fn request_range(&self, x: u32, y: u32)
pub fn request_xor(&self, x: u32, y: u32) -> u32
pub fn clear(&self)
pub fn generate_trace<F: Field>(&self) -> RowMajorMatrix<F>
Trait Implementations§
Source§impl<SC: StarkGenericConfig, const NUM_BITS: usize> Chip<SC> for BitwiseOperationLookupChip<NUM_BITS>
impl<SC: StarkGenericConfig, const NUM_BITS: usize> Chip<SC> for BitwiseOperationLookupChip<NUM_BITS>
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 NUM_BITS: usize> ChipUsageGetter for BitwiseOperationLookupChip<NUM_BITS>
impl<const NUM_BITS: usize> ChipUsageGetter for BitwiseOperationLookupChip<NUM_BITS>
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 NUM_BITS: usize> Freeze for BitwiseOperationLookupChip<NUM_BITS>
impl<const NUM_BITS: usize> RefUnwindSafe for BitwiseOperationLookupChip<NUM_BITS>
impl<const NUM_BITS: usize> Send for BitwiseOperationLookupChip<NUM_BITS>
impl<const NUM_BITS: usize> Sync for BitwiseOperationLookupChip<NUM_BITS>
impl<const NUM_BITS: usize> Unpin for BitwiseOperationLookupChip<NUM_BITS>
impl<const NUM_BITS: usize> UnwindSafe for BitwiseOperationLookupChip<NUM_BITS>
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