pub struct LengthEqual<const N: usize> { /* private fields */ }Expand description
Checks whether the value has length equal to N.
Trait Implementations§
Source§impl<const N: usize, T: HasLength + ?Sized> Predicate<T> for LengthEqual<N>
impl<const N: usize, T: HasLength + ?Sized> Predicate<T> for LengthEqual<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for LengthEqual<N>
impl<const N: usize> RefUnwindSafe for LengthEqual<N>
impl<const N: usize> Send for LengthEqual<N>
impl<const N: usize> Sync for LengthEqual<N>
impl<const N: usize> Unpin for LengthEqual<N>
impl<const N: usize> UnsafeUnpin for LengthEqual<N>
impl<const N: usize> UnwindSafe for LengthEqual<N>
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.