pub struct IsEmpty;Expand description
Checks whether the value is empty.
Trait Implementations§
Source§impl Ord for IsEmpty
impl Ord for IsEmpty
Source§impl PartialOrd for IsEmpty
impl PartialOrd for IsEmpty
Source§impl<T: HasEmpty + ?Sized> Predicate<T> for IsEmpty
impl<T: HasEmpty + ?Sized> Predicate<T> for IsEmpty
Source§type Error = NonEmptyError
type Error = NonEmptyError
The associated error type which is used to represent checks.
Source§fn check(value: &T) -> Result<(), Self::Error>
fn check(value: &T) -> Result<(), Self::Error>
Checks if the value of type
T satisfies the predicate. Read moreimpl Copy for IsEmpty
impl Eq for IsEmpty
impl StructuralPartialEq for IsEmpty
Auto Trait Implementations§
impl Freeze for IsEmpty
impl RefUnwindSafe for IsEmpty
impl Send for IsEmpty
impl Sync for IsEmpty
impl Unpin for IsEmpty
impl UnwindSafe for IsEmpty
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