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