pub struct LessThanInvariant<const N: i32>;Expand description
Terms less than a constant (defined by PartialOrd comparison).
Trait Implementations§
Source§impl<const N: i32> Clone for LessThanInvariant<N>
impl<const N: i32> Clone for LessThanInvariant<N>
Source§fn clone(&self) -> LessThanInvariant<N>
fn clone(&self) -> LessThanInvariant<N>
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<const N: i32> Debug for LessThanInvariant<N>
impl<const N: i32> Debug for LessThanInvariant<N>
Source§impl<const N: i32> Default for LessThanInvariant<N>
impl<const N: i32> Default for LessThanInvariant<N>
Source§fn default() -> LessThanInvariant<N>
fn default() -> LessThanInvariant<N>
Returns the “default value” for a type. Read more
Source§impl<const N: i32> Hash for LessThanInvariant<N>
impl<const N: i32> Hash for LessThanInvariant<N>
Source§impl<const N: i32> Ord for LessThanInvariant<N>
impl<const N: i32> Ord for LessThanInvariant<N>
Source§fn cmp(&self, other: &LessThanInvariant<N>) -> Ordering
fn cmp(&self, other: &LessThanInvariant<N>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const N: i32> PartialEq for LessThanInvariant<N>
impl<const N: i32> PartialEq for LessThanInvariant<N>
Source§impl<const N: i32> PartialOrd for LessThanInvariant<N>
impl<const N: i32> PartialOrd for LessThanInvariant<N>
Source§impl<const N: i32> Test<i32> for LessThanInvariant<N>
impl<const N: i32> Test<i32> for LessThanInvariant<N>
Source§const ADJECTIVE: &str = "positive"
const ADJECTIVE: &str = "positive"
Adjective to describe this test:
for example, if we’re testing A,
then this is B in “A is not B.”
Source§type Error<'i> = NotLessThan<'i, N>
where
i32: 'i
type Error<'i> = NotLessThan<'i, N> where i32: 'i
An error implementing
::core::fmt::Display.
If no error is ever provided, please use ::core::convert::Infallible.impl<const N: i32> Copy for LessThanInvariant<N>
impl<const N: i32> Eq for LessThanInvariant<N>
impl<const N: i32> StructuralPartialEq for LessThanInvariant<N>
Auto Trait Implementations§
impl<const N: i32> Freeze for LessThanInvariant<N>
impl<const N: i32> RefUnwindSafe for LessThanInvariant<N>
impl<const N: i32> Send for LessThanInvariant<N>
impl<const N: i32> Sync for LessThanInvariant<N>
impl<const N: i32> Unpin for LessThanInvariant<N>
impl<const N: i32> UnwindSafe for LessThanInvariant<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