pub struct U16Mod<const D: u16, const M: u16>;Expand description
Checks whether the given value divided by D has modulo M.
Trait Implementations§
Source§impl<const D: u16, const M: u16> Ord for U16Mod<D, M>
impl<const D: u16, const M: u16> Ord for U16Mod<D, M>
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 D: u16, const M: u16> PartialOrd for U16Mod<D, M>
impl<const D: u16, const M: u16> PartialOrd for U16Mod<D, M>
Source§impl<const D: u16, const M: u16> Predicate<u16> for U16Mod<D, M>
impl<const D: u16, const M: u16> Predicate<u16> for U16Mod<D, M>
Source§type Error = U16ModError
type Error = U16ModError
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 D: u16, const M: u16> Copy for U16Mod<D, M>
impl<const D: u16, const M: u16> Eq for U16Mod<D, M>
impl<const D: u16, const M: u16> StructuralPartialEq for U16Mod<D, M>
Auto Trait Implementations§
impl<const D: u16, const M: u16> Freeze for U16Mod<D, M>
impl<const D: u16, const M: u16> RefUnwindSafe for U16Mod<D, M>
impl<const D: u16, const M: u16> Send for U16Mod<D, M>
impl<const D: u16, const M: u16> Sync for U16Mod<D, M>
impl<const D: u16, const M: u16> Unpin for U16Mod<D, M>
impl<const D: u16, const M: u16> UnwindSafe for U16Mod<D, M>
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