#[repr(C)]pub struct IsLessThanIo<T> {
pub x: T,
pub y: T,
pub out: T,
pub count: T,
}
Expand description
The IO is typically provided with T = AB::Expr
as external context.
Fields§
§x: T
§y: T
§out: T
The boolean output, constrained to equal (x < y) when count != 0
.
count: T
Range checks are done with multiplicity count
.
If count == 0
then no range checks are done.
In practice count
is always boolean, although this is not enforced
by the subair.
N.B.: in fact range checks could always be done, if the aux
subrow values are set to 0 when count == 0
. This woud slightly
simplify the range check interactions, although usually doesn’t change
the overall constraint degree. It however leads to the annoyance that
you must update the RangeChecker’s multiplicities even on dummy padding
rows. To improve quality of life,
we currently use this more complex constraint.
Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for IsLessThanIo<T>
impl<T: Clone> Clone for IsLessThanIo<T>
Source§fn clone(&self) -> IsLessThanIo<T>
fn clone(&self) -> IsLessThanIo<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Debug> Debug for IsLessThanIo<T>
impl<T: Debug> Debug for IsLessThanIo<T>
Source§impl<T: Default> Default for IsLessThanIo<T>
impl<T: Default> Default for IsLessThanIo<T>
Source§fn default() -> IsLessThanIo<T>
fn default() -> IsLessThanIo<T>
Returns the “default value” for a type. Read more
impl<T: Copy> Copy for IsLessThanIo<T>
Auto Trait Implementations§
impl<T> Freeze for IsLessThanIo<T>where
T: Freeze,
impl<T> RefUnwindSafe for IsLessThanIo<T>where
T: RefUnwindSafe,
impl<T> Send for IsLessThanIo<T>where
T: Send,
impl<T> Sync for IsLessThanIo<T>where
T: Sync,
impl<T> Unpin for IsLessThanIo<T>where
T: Unpin,
impl<T> UnwindSafe for IsLessThanIo<T>where
T: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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