#[repr(transparent)]pub struct Neg<R: ValidateString> { /* private fields */ }
Expand description
Require the rule to NOT pass.
If the rule doesn’t pass, discard the error.
If the rule passes, raise the error NegationPassedError
,
which contains no information.
Trait Implementations§
source§impl<R: Ord + ValidateString> Ord for Neg<R>
impl<R: Ord + ValidateString> Ord for Neg<R>
source§impl<R: PartialEq + ValidateString> PartialEq<Neg<R>> for Neg<R>
impl<R: PartialEq + ValidateString> PartialEq<Neg<R>> for Neg<R>
source§impl<R: PartialOrd + ValidateString> PartialOrd<Neg<R>> for Neg<R>
impl<R: PartialOrd + ValidateString> PartialOrd<Neg<R>> for Neg<R>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<R: ValidateString> ValidateString for Neg<R>
impl<R: ValidateString> ValidateString for Neg<R>
impl<R: Copy + ValidateString> Copy for Neg<R>
impl<R: Eq + ValidateString> Eq for Neg<R>
impl<R: ValidateString> StructuralEq for Neg<R>
impl<R: ValidateString> StructuralPartialEq for Neg<R>
Auto Trait Implementations§
impl<R> RefUnwindSafe for Neg<R>where R: RefUnwindSafe,
impl<R> Send for Neg<R>
impl<R> Sync for Neg<R>
impl<R> Unpin for Neg<R>
impl<R> UnwindSafe for Neg<R>where R: UnwindSafe,
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