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