Enum debris_parser::token::InfixOperator
source · pub enum InfixOperator {
Show 14 variants
Dot,
Plus,
Minus,
Times,
Divide,
Modulo,
Equal,
NotEqual,
GreaterOrEqual,
Greater,
LessOrEqual,
Less,
And,
Or,
}
Variants§
Implementations§
source§impl InfixOperator
impl InfixOperator
sourcepub fn precedence(&self) -> u8
pub fn precedence(&self) -> u8
Returns the precedence of this InfixOperator
.
The higher the precedence the tighter the operator binds.
Auto Trait Implementations§
impl RefUnwindSafe for InfixOperator
impl Send for InfixOperator
impl Sync for InfixOperator
impl Unpin for InfixOperator
impl UnwindSafe for InfixOperator
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