pub struct Less<const N: u64> { /* private fields */ }Expand description
Checks whether the given value is less than N.
Trait Implementations§
Source§impl<const N: u64> Predicate<u64> for Less<N>
impl<const N: u64> Predicate<u64> for Less<N>
Source§fn check(value: &u64) -> Result<(), Self::Error>
fn check(value: &u64) -> Result<(), Self::Error>
Checks if the value of type
T satisfies the predicate. Read moreSource§fn expect(formatter: &mut Formatter<'_>) -> Result
fn expect(formatter: &mut Formatter<'_>) -> Result
Formats the expectation of the predicate. Read more
Source§fn expect_code(formatter: &mut Formatter<'_>) -> Result
fn expect_code(formatter: &mut Formatter<'_>) -> Result
Formats the expectation code of the predicate. Read more
Source§fn is_satisfied(value: &T) -> bool
fn is_satisfied(value: &T) -> bool
Checks whether the given value satisfies the predicate. Read more
Source§fn expected_code() -> ExpectedCode<T, Self>
fn expected_code() -> ExpectedCode<T, Self>
Returns the expectation code of the predicate.
Auto Trait Implementations§
impl<const N: u64> Freeze for Less<N>
impl<const N: u64> RefUnwindSafe for Less<N>
impl<const N: u64> Send for Less<N>
impl<const N: u64> Sync for Less<N>
impl<const N: u64> Unpin for Less<N>
impl<const N: u64> UnwindSafe for Less<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