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