Enum gluon_parser::infix::Fixity
source · pub enum Fixity {
Left,
Right,
}
Expand description
The fixity (associativity) of an infix operator
Variants
Left
Left operator associativity.
For example, when the (~)
operator is left-associative:
x ~ y ~ z ≡ (x ~ y) ~ z
Right
Right operator associativity.
For example, when the (~)
operator is right-associative:
x ~ y ~ z ≡ x ~ (y ~ z)
Trait Implementations
impl Copy for Fixity
impl StructuralPartialEq for Fixity
Auto Trait Implementations
impl RefUnwindSafe for Fixity
impl Send for Fixity
impl Sync for Fixity
impl Unpin for Fixity
impl UnwindSafe for Fixity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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