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