pub struct Not<Inner> { /* private fields */ }Expand description
A specification that negates another specification’s result.
Construct this type with Specification::not.
Trait Implementations§
Source§impl<T: ?Sized, Inner> Specification<T> for Not<Inner>where
Inner: Specification<T>,
impl<T: ?Sized, Inner> Specification<T> for Not<Inner>where
Inner: Specification<T>,
Source§fn is_satisfied_by(&self, candidate: &T) -> bool
fn is_satisfied_by(&self, candidate: &T) -> bool
Returns whether
candidate satisfies this rule.Source§fn and<Other>(self, other: Other) -> And<Self, Other>where
Self: Sized,
Other: Specification<T>,
fn and<Other>(self, other: Other) -> And<Self, Other>where
Self: Sized,
Other: Specification<T>,
Combines this rule with
other using short-circuiting logical AND. Read moreAuto Trait Implementations§
impl<Inner> Freeze for Not<Inner>where
Inner: Freeze,
impl<Inner> RefUnwindSafe for Not<Inner>where
Inner: RefUnwindSafe,
impl<Inner> Send for Not<Inner>where
Inner: Send,
impl<Inner> Sync for Not<Inner>where
Inner: Sync,
impl<Inner> Unpin for Not<Inner>where
Inner: Unpin,
impl<Inner> UnsafeUnpin for Not<Inner>where
Inner: UnsafeUnpin,
impl<Inner> UnwindSafe for Not<Inner>where
Inner: 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