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