pub struct Modulo<const D: i128, const M: i128> { /* private fields */ }Expand description
Checks whether i128 divided by D has modulo M.
Trait Implementations§
Source§impl<const D: i128, const M: i128> Predicate<i128> for Modulo<D, M>
impl<const D: i128, const M: i128> Predicate<i128> for Modulo<D, M>
Source§type Error = ModuloError
type Error = ModuloError
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 moreSource§fn expect(formatter: &mut Formatter<'_>) -> Result
fn expect(formatter: &mut Formatter<'_>) -> Result
Formats the expectation of the predicate. Read more
Source§fn expect_code(formatter: &mut Formatter<'_>) -> Result
fn expect_code(formatter: &mut Formatter<'_>) -> Result
Formats the expectation code of the predicate. Read more
Source§fn is_satisfied(value: &T) -> bool
fn is_satisfied(value: &T) -> bool
Checks whether the given value satisfies the predicate. Read more
Source§fn expected_code() -> ExpectedCode<T, Self>
fn expected_code() -> ExpectedCode<T, Self>
Returns the expectation code of the predicate.
Auto Trait Implementations§
impl<const D: i128, const M: i128> Freeze for Modulo<D, M>
impl<const D: i128, const M: i128> RefUnwindSafe for Modulo<D, M>
impl<const D: i128, const M: i128> Send for Modulo<D, M>
impl<const D: i128, const M: i128> Sync for Modulo<D, M>
impl<const D: i128, const M: i128> Unpin for Modulo<D, M>
impl<const D: i128, const M: i128> UnwindSafe for Modulo<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