pub struct MaxCount { /* private fields */ }Expand description
A specification satisfied while a named counter remains strictly below a maximum.
Implementations§
Trait Implementations§
Source§impl<UserData> Specification<EvaluationContext<UserData>> for MaxCount
impl<UserData> Specification<EvaluationContext<UserData>> for MaxCount
Source§fn is_satisfied_by(&self, context: &EvaluationContext<UserData>) -> bool
fn is_satisfied_by(&self, context: &EvaluationContext<UserData>) -> 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 Freeze for MaxCount
impl RefUnwindSafe for MaxCount
impl Send for MaxCount
impl Sync for MaxCount
impl Unpin for MaxCount
impl UnsafeUnpin for MaxCount
impl UnwindSafe for MaxCount
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