pub struct And<L, R> { /* private fields */ }Expand description
English:
Conjunction that evaluates the right rule only after the left returns Ok(true).
A left Ok(false) or error is returned immediately; a right result is forwarded unchanged.
日本語:
左が Ok(true) を返した場合のみ右を評価する論理積です。
左の Ok(false) やエラーは直ちに返し、右を評価した場合はその結果を変更せず返します。
Implementations§
Trait Implementations§
Source§impl<T, L, R> Specification<T> for And<L, R>
impl<T, L, R> Specification<T> for And<L, R>
Source§type Error = <L as Specification<T>>::Error
type Error = <L as Specification<T>>::Error
Source§fn is_satisfied_by(
&self,
candidate: &T,
) -> Result<bool, <And<L, R> as Specification<T>>::Error>
fn is_satisfied_by( &self, candidate: &T, ) -> Result<bool, <And<L, R> 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<L, R> Freeze for And<L, R>
impl<L, R> RefUnwindSafe for And<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for And<L, R>
impl<L, R> Sync for And<L, R>
impl<L, R> Unpin for And<L, R>
impl<L, R> UnsafeUnpin for And<L, R>where
L: UnsafeUnpin,
R: UnsafeUnpin,
impl<L, R> UnwindSafe for And<L, R>where
L: UnwindSafe,
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