pub struct Or<L, R> { /* private fields */ }Expand description
English:
Disjunction that evaluates the right rule only after the left returns Ok(false).
A left Ok(true) or error short-circuits; errors are not treated as a negative match.
日本語:
左が Ok(false) を返した場合のみ右を評価する論理和です。
左の Ok(true) やエラーで短絡し、エラーを不一致として扱いません。
Implementations§
Trait Implementations§
Source§impl<T, L, R> Specification<T> for Or<L, R>
impl<T, L, R> Specification<T> for Or<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, <Or<L, R> as Specification<T>>::Error>
fn is_satisfied_by( &self, candidate: &T, ) -> Result<bool, <Or<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 Or<L, R>
impl<L, R> RefUnwindSafe for Or<L, R>where
L: RefUnwindSafe,
R: RefUnwindSafe,
impl<L, R> Send for Or<L, R>
impl<L, R> Sync for Or<L, R>
impl<L, R> Unpin for Or<L, R>
impl<L, R> UnsafeUnpin for Or<L, R>where
L: UnsafeUnpin,
R: UnsafeUnpin,
impl<L, R> UnwindSafe for Or<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