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