pub enum ACOperator {
And,
Or,
Add,
Mul,
Min,
Max,
}Expand description
Operators that are associative and commutative.
Variants§
And
Logical AND (∧)
Or
Logical OR (∨)
Add
Addition (+)
Mul
Multiplication (*)
Min
Min operation
Max
Max operation
Implementations§
Source§impl ACOperator
impl ACOperator
Sourcepub fn matches_expr(&self, expr: &TLExpr) -> bool
pub fn matches_expr(&self, expr: &TLExpr) -> bool
Check if an expression uses this AC operator.
Trait Implementations§
Source§impl Clone for ACOperator
impl Clone for ACOperator
Source§fn clone(&self) -> ACOperator
fn clone(&self) -> ACOperator
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 ACOperator
impl Debug for ACOperator
Source§impl Hash for ACOperator
impl Hash for ACOperator
Source§impl PartialEq for ACOperator
impl PartialEq for ACOperator
impl Copy for ACOperator
impl Eq for ACOperator
impl StructuralPartialEq for ACOperator
Auto Trait Implementations§
impl Freeze for ACOperator
impl RefUnwindSafe for ACOperator
impl Send for ACOperator
impl Sync for ACOperator
impl Unpin for ACOperator
impl UnwindSafe for ACOperator
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