pub enum Associativity {
Left,
Right,
None,
}
Expand description
Represents the associativity of a binding of a grammar’s terminals and production rules.
See syntaxDirectedTranslatorBuilder for more details.
Variants§
Left
Represents left-associated binding.
For example - the addition operator’s binding is left-associated.
Right
Represents right-associated binding.
For example - the unary minus operator’s binding is right-associated.
None
Represents bindings that cannot be associated to either left or right.
Auto Trait Implementations§
impl Freeze for Associativity
impl RefUnwindSafe for Associativity
impl Send for Associativity
impl Sync for Associativity
impl Unpin for Associativity
impl UnwindSafe for Associativity
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