pub struct BitAndLooker {
pub in_a: Col<B8>,
pub in_b: Col<B8>,
/* private fields */
}
Expand description
The 2 columns that are the inputs to the AND operation, and the gadget exposes an output column that corresponds to the bitwise AND of the two inputs.
Fields§
§in_a: Col<B8>
Input column A (8 bits)
in_b: Col<B8>
Input column B (8 bits)
Implementations§
Source§impl BitAndLooker
impl BitAndLooker
Sourcepub fn new(table: &mut TableBuilder<'_>, lookup_chan: ChannelId) -> Self
pub fn new(table: &mut TableBuilder<'_>, lookup_chan: ChannelId) -> Self
Constructs a new AND looker, registering columns in the table.
Auto Trait Implementations§
impl Freeze for BitAndLooker
impl RefUnwindSafe for BitAndLooker
impl Send for BitAndLooker
impl Sync for BitAndLooker
impl Unpin for BitAndLooker
impl UnwindSafe for BitAndLooker
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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