pub struct Not<S> { /* private fields */ }Expand description
English: Exposes fallible specifications and their short-circuiting boolean wrappers.
日本語: 失敗し得る仕様と、短絡評価する論理演算のラッパーを公開します。 English: Exposes fallible specifications and their short-circuiting boolean wrappers.
日本語: 失敗し得る仕様と、短絡評価する論理演算のラッパーを公開します。 English: Exposes fallible specifications and their short-circuiting boolean wrappers.
日本語: 失敗し得る仕様と、短絡評価する論理演算のラッパーを公開します。
English: Negation that evaluates its inner rule once, flips Ok(bool), and propagates Err unchanged.
日本語: 内側の規則を一度評価し、Ok(bool) を反転し、Err は変更せず伝播する否定です。
Implementations§
Trait Implementations§
Source§impl<T: ?Sized, S> Specification<T> for Not<S>where
S: Specification<T>,
impl<T: ?Sized, S> Specification<T> for Not<S>where
S: Specification<T>,
Source§type Error = <S as Specification<T>>::Error
type Error = <S as Specification<T>>::Error
English: Evaluation failure, distinct from a successfully evaluated
false result. Read moreSource§fn is_satisfied_by(&self, candidate: &T) -> Result<bool, Self::Error>
fn is_satisfied_by(&self, candidate: &T) -> Result<bool, Self::Error>
English: 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