pub struct And<Left, Right> { /* private fields */ }Expand description
A specification that requires both of two specifications to be satisfied.
Construct this type with Specification::and. Its operands remain
concrete types, so the composition does not allocate or use dynamic
dispatch.
Trait Implementations§
Source§impl<T: ?Sized, Left, Right> Specification<T> for And<Left, Right>where
Left: Specification<T>,
Right: Specification<T>,
impl<T: ?Sized, Left, Right> Specification<T> for And<Left, Right>where
Left: Specification<T>,
Right: 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<Left, Right> Freeze for And<Left, Right>
impl<Left, Right> RefUnwindSafe for And<Left, Right>where
Left: RefUnwindSafe,
Right: RefUnwindSafe,
impl<Left, Right> Send for And<Left, Right>
impl<Left, Right> Sync for And<Left, Right>
impl<Left, Right> Unpin for And<Left, Right>
impl<Left, Right> UnsafeUnpin for And<Left, Right>where
Left: UnsafeUnpin,
Right: UnsafeUnpin,
impl<Left, Right> UnwindSafe for And<Left, Right>where
Left: UnwindSafe,
Right: 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