Enum boreal_parser::ForSelection
source · 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
Fields
§
expr: Box<Expression>Number of variables selected
ParsedExpr that should evaluate to a number, indicating:
- if as_percent is false, how many variables in the set must match the condition.
- if as_percent is true, which percentage of variables in the set msut match the condition. the condition.
Usually, the expression is a simple number.
Trait Implementations§
source§impl Clone for ForSelection
impl Clone for ForSelection
source§fn clone(&self) -> ForSelection
fn clone(&self) -> ForSelection
Returns a copy 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 more