pub struct AllOf<'specifications, SpecificationType> { /* private fields */ }Expand description
A borrowed collection evaluated with logical AND.
An empty collection is satisfied, the identity for logical AND. Evaluation stops at the first unsatisfied specification.
Implementations§
Trait Implementations§
Source§impl<T: ?Sized, SpecificationType> Specification<T> for AllOf<'_, SpecificationType>where
SpecificationType: Specification<T>,
impl<T: ?Sized, SpecificationType> Specification<T> for AllOf<'_, SpecificationType>where
SpecificationType: 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<'specifications, SpecificationType> Freeze for AllOf<'specifications, SpecificationType>where
&'specifications [SpecificationType]: Freeze,
impl<'specifications, SpecificationType> RefUnwindSafe for AllOf<'specifications, SpecificationType>where
&'specifications [SpecificationType]: RefUnwindSafe,
impl<'specifications, SpecificationType> Send for AllOf<'specifications, SpecificationType>where
&'specifications [SpecificationType]: Send,
impl<'specifications, SpecificationType> Sync for AllOf<'specifications, SpecificationType>where
&'specifications [SpecificationType]: Sync,
impl<'specifications, SpecificationType> Unpin for AllOf<'specifications, SpecificationType>where
&'specifications [SpecificationType]: Unpin,
impl<'specifications, SpecificationType> UnsafeUnpin for AllOf<'specifications, SpecificationType>where
&'specifications [SpecificationType]: UnsafeUnpin,
impl<'specifications, SpecificationType> UnwindSafe for AllOf<'specifications, SpecificationType>where
&'specifications [SpecificationType]: 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