Enum darklua_core::nodes::BinaryOperator
source · [−]pub enum BinaryOperator {
Show 15 variants
And,
Or,
Equal,
NotEqual,
LowerThan,
LowerOrEqualThan,
GreaterThan,
GreaterOrEqualThan,
Plus,
Minus,
Asterisk,
Slash,
Percent,
Caret,
Concat,
}Variants
And
Or
Equal
NotEqual
LowerThan
LowerOrEqualThan
GreaterThan
GreaterOrEqualThan
Plus
Minus
Asterisk
Slash
Percent
Caret
Concat
Implementations
sourceimpl BinaryOperator
impl BinaryOperator
pub fn precedes(&self, other: Self) -> bool
pub fn precedes_unary_expression(&self) -> bool
pub fn is_left_associative(&self) -> bool
pub fn is_right_associative(&self) -> bool
pub fn left_needs_parentheses(&self, left: &Expression) -> bool
pub fn right_needs_parentheses(&self, right: &Expression) -> bool
pub fn to_str(&self) -> &'static str
Trait Implementations
sourceimpl Clone for BinaryOperator
impl Clone for BinaryOperator
sourcefn clone(&self) -> BinaryOperator
fn clone(&self) -> BinaryOperator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for BinaryOperator
impl Debug for BinaryOperator
sourceimpl PartialEq<BinaryOperator> for BinaryOperator
impl PartialEq<BinaryOperator> for BinaryOperator
impl Copy for BinaryOperator
impl Eq for BinaryOperator
impl StructuralEq for BinaryOperator
impl StructuralPartialEq for BinaryOperator
Auto Trait Implementations
impl RefUnwindSafe for BinaryOperator
impl Send for BinaryOperator
impl Sync for BinaryOperator
impl Unpin for BinaryOperator
impl UnwindSafe for BinaryOperator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more