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