enum Operator<P1, P2, P3, Q: Ord + Copy> {
Prefix(P1, Q),
Postfix(P2, Q),
Binary(P3, Q, Assoc),
}
Expand description
Element for operator stack.
Variants§
Implementations§
Source§impl<P1, P2, P3, Q> Operator<P1, P2, P3, Q>
impl<P1, P2, P3, Q> Operator<P1, P2, P3, Q>
fn precedence(&self) -> Q
fn is_postfix(&self) -> bool
Auto Trait Implementations§
impl<P1, P2, P3, Q> Freeze for Operator<P1, P2, P3, Q>
impl<P1, P2, P3, Q> RefUnwindSafe for Operator<P1, P2, P3, Q>
impl<P1, P2, P3, Q> Send for Operator<P1, P2, P3, Q>
impl<P1, P2, P3, Q> Sync for Operator<P1, P2, P3, Q>
impl<P1, P2, P3, Q> Unpin for Operator<P1, P2, P3, Q>
impl<P1, P2, P3, Q> UnwindSafe for Operator<P1, P2, P3, Q>
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