Enum boreal_parser::expression::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 moresource§impl Debug for ForSelection
impl Debug for ForSelection
source§impl PartialEq for ForSelection
impl PartialEq for ForSelection
source§fn eq(&self, other: &ForSelection) -> bool
fn eq(&self, other: &ForSelection) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ForSelection
Auto Trait Implementations§
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