pub struct UsizeLt<const N: usize>;Expand description
Checks whether the given value is less than N.
Trait Implementations§
Source§impl<const N: usize> Ord for UsizeLt<N>
impl<const N: usize> Ord for UsizeLt<N>
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: usize> PartialOrd for UsizeLt<N>
impl<const N: usize> PartialOrd for UsizeLt<N>
Source§impl<const N: usize> Predicate<usize> for UsizeLt<N>
impl<const N: usize> Predicate<usize> for UsizeLt<N>
Source§type Error = UsizeLtError
type Error = UsizeLtError
The associated error type which is used to represent checks.
Source§fn check(value: &usize) -> Result<(), Self::Error>
fn check(value: &usize) -> Result<(), Self::Error>
Checks if the value of type
T satisfies the predicate. Read moreimpl<const N: usize> Copy for UsizeLt<N>
impl<const N: usize> Eq for UsizeLt<N>
impl<const N: usize> StructuralPartialEq for UsizeLt<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for UsizeLt<N>
impl<const N: usize> RefUnwindSafe for UsizeLt<N>
impl<const N: usize> Send for UsizeLt<N>
impl<const N: usize> Sync for UsizeLt<N>
impl<const N: usize> Unpin for UsizeLt<N>
impl<const N: usize> UnwindSafe for UsizeLt<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