pub struct Not<S> { /* private fields */ }Expand description
English:
Negation that evaluates its inner rule once, flips Ok(bool), and propagates Err unchanged.
日本語:
内側の規則を一度評価し、Ok(bool) を反転し、Err は変更せず伝播する否定です。
Implementations§
Trait Implementations§
Source§impl<T, S> Specification<T> for Not<S>where
S: Specification<T>,
T: ?Sized,
impl<T, S> Specification<T> for Not<S>where
S: Specification<T>,
T: ?Sized,
Source§type Error = <S as Specification<T>>::Error
type Error = <S as Specification<T>>::Error
Source§fn is_satisfied_by(
&self,
candidate: &T,
) -> Result<bool, <Not<S> as Specification<T>>::Error>
fn is_satisfied_by( &self, candidate: &T, ) -> Result<bool, <Not<S> as Specification<T>>::Error>
English:
Returns whether
Returns whether
candidate satisfies the rule or why evaluation failed.
The candidate remains borrowed; side effects and panic conditions depend on the rule. Read moreAuto Trait Implementations§
impl<S> Freeze for Not<S>where
S: Freeze,
impl<S> RefUnwindSafe for Not<S>where
S: RefUnwindSafe,
impl<S> Send for Not<S>where
S: Send,
impl<S> Sync for Not<S>where
S: Sync,
impl<S> Unpin for Not<S>where
S: Unpin,
impl<S> UnsafeUnpin for Not<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Not<S>where
S: 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