#[repr(C)]pub struct AssertLessThanIo<T> {
pub x: T,
pub y: T,
pub count: T,
}
Expand description
The IO is typically provided with T = AB::Expr
as external context.
Fields§
§x: T
§y: T
§count: T
Will only apply constraints when count != 0
.
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 AssertLessThanIo<T>
impl<T: Clone> Clone for AssertLessThanIo<T>
Source§fn clone(&self) -> AssertLessThanIo<T>
fn clone(&self) -> AssertLessThanIo<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 AssertLessThanIo<T>
impl<T: Debug> Debug for AssertLessThanIo<T>
Source§impl<T: Default> Default for AssertLessThanIo<T>
impl<T: Default> Default for AssertLessThanIo<T>
Source§fn default() -> AssertLessThanIo<T>
fn default() -> AssertLessThanIo<T>
Returns the “default value” for a type. Read more
impl<T: Copy> Copy for AssertLessThanIo<T>
Auto Trait Implementations§
impl<T> Freeze for AssertLessThanIo<T>where
T: Freeze,
impl<T> RefUnwindSafe for AssertLessThanIo<T>where
T: RefUnwindSafe,
impl<T> Send for AssertLessThanIo<T>where
T: Send,
impl<T> Sync for AssertLessThanIo<T>where
T: Sync,
impl<T> Unpin for AssertLessThanIo<T>where
T: Unpin,
impl<T> UnwindSafe for AssertLessThanIo<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