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