pub struct Flag { /* private fields */ }Expand description
A specification satisfied when a named context flag is true.
Implementations§
Trait Implementations§
Source§impl<UserData> Specification<EvaluationContext<UserData>> for Flag
impl<UserData> Specification<EvaluationContext<UserData>> for Flag
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 Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnsafeUnpin for Flag
impl UnwindSafe for Flag
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