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§
source§impl PartialEq<Fixity> for Fixity
impl PartialEq<Fixity> for Fixity
impl Copy for Fixity
impl Eq for Fixity
impl StructuralEq 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§
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