pub enum Precdence {
Lowest,
Equals,
LessGreater,
Sum,
Product,
Prefix,
Call,
Index,
}
Expand description
Defines the precedences of the Monkey programming language.
Variants§
Lowest
The lowest value precedence
Equals
Equality comparison operator ==
LessGreater
Strictly greater/less than operators >
or <
Sum
Summation operator +
Product
Multiplication operator *
Prefix
Prefix operators, e.g., -X
or !X
Call
Function calls, e.g., myFunction(X)
Index
Index access, e.g., myArray[i]
Trait Implementations§
Source§impl PartialOrd for Precdence
impl PartialOrd for Precdence
impl Eq for Precdence
impl StructuralPartialEq for Precdence
Auto Trait Implementations§
impl Freeze for Precdence
impl RefUnwindSafe for Precdence
impl Send for Precdence
impl Sync for Precdence
impl Unpin for Precdence
impl UnwindSafe for Precdence
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