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