Enum banyan_utils::tag_index::Expression [−][src]
pub enum Expression {
Literal(SmolStr),
And(Vec<Expression>),
Or(Vec<Expression>),
}
Expand description
a boolean expression, consisting of literals, union and intersection.
no attempt of simplification is made, except flattening identical operators.
And([And([a,b]),c])
will be flattened to And([a,b,c])
.
Variants
Literal(SmolStr)
Tuple Fields
0: SmolStr
And(Vec<Expression>)
Tuple Fields
0: Vec<Expression>
Or(Vec<Expression>)
Tuple Fields
0: Vec<Expression>
Implementations
Trait Implementations
type Output = Expression
type Output = Expression
The resulting type after applying the &
operator.
type Output = Expression
type Output = Expression
The resulting type after applying the |
operator.
prints the expression with a minimum of brackets
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more