pub enum ForSelection {
Any,
All,
None,
Expr {
expr: Box<Expression>,
as_percent: bool,
},
}Expand description
Selection of variables in a ‘for’ expression.
This indicates how many variables must match the for condition for it to be considered true.
Variants§
Any
Any variable in the set must match the condition.
All
All of the variables in the set must match the condition.
None
None of the variables in the set must match the condition.
Expr
ParsedExpr that should evaluate to a number, indicating:
- if
as_percentis false, how many variables in the set must match the condition. - if
as_percentis true, which percentage of variables in the set msut match the condition. the condition.
Usually, the expression is a simple number.
Fields
§
expr: Box<Expression>Number of variables selected
Trait Implementations§
Source§impl Clone for ForSelection
impl Clone for ForSelection
Source§fn clone(&self) -> ForSelection
fn clone(&self) -> ForSelection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForSelection
impl Debug for ForSelection
Source§impl PartialEq for ForSelection
impl PartialEq for ForSelection
impl StructuralPartialEq for ForSelection
Auto Trait Implementations§
impl Freeze for ForSelection
impl RefUnwindSafe for ForSelection
impl Send for ForSelection
impl Sync for ForSelection
impl Unpin for ForSelection
impl UnwindSafe for ForSelection
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