pub struct LengthModulo<const D: usize, const M: usize> { /* private fields */ }Expand description
Checks whether the given value has length that has modulo M when divided by D.
Trait Implementations§
Source§impl<const D: usize, const M: usize, T: HasLength + ?Sized> Predicate<T> for LengthModulo<D, M>
impl<const D: usize, const M: usize, T: HasLength + ?Sized> Predicate<T> for LengthModulo<D, M>
Auto Trait Implementations§
impl<const D: usize, const M: usize> Freeze for LengthModulo<D, M>
impl<const D: usize, const M: usize> RefUnwindSafe for LengthModulo<D, M>
impl<const D: usize, const M: usize> Send for LengthModulo<D, M>
impl<const D: usize, const M: usize> Sync for LengthModulo<D, M>
impl<const D: usize, const M: usize> Unpin for LengthModulo<D, M>
impl<const D: usize, const M: usize> UnsafeUnpin for LengthModulo<D, M>
impl<const D: usize, const M: usize> UnwindSafe for LengthModulo<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
Source§impl<T, P> PredicateExpected<T> for P
impl<T, P> PredicateExpected<T> for P
Source§fn expected() -> Expected<T, Self>
fn expected() -> Expected<T, Self>
Returns the
Expected<T, Self> value used for formatting.