pub enum Token<Op, Atom>where
Op: Debug + Clone + PartialEq,
Atom: Debug + Clone,{
Atom(Atom),
Operator(Op),
OpeningParenthesis,
ClosingParenthesis,
}
Expand description
Something that can be added to the tree
Variants
Atom(Atom)
Operator(Op)
OpeningParenthesis
ClosingParenthesis
Auto Trait Implementations
impl<Op, Atom> RefUnwindSafe for Token<Op, Atom>where
Atom: RefUnwindSafe,
Op: RefUnwindSafe,
impl<Op, Atom> Send for Token<Op, Atom>where
Atom: Send,
Op: Send,
impl<Op, Atom> Sync for Token<Op, Atom>where
Atom: Sync,
Op: Sync,
impl<Op, Atom> Unpin for Token<Op, Atom>where
Atom: Unpin,
Op: Unpin,
impl<Op, Atom> UnwindSafe for Token<Op, Atom>where
Atom: UnwindSafe,
Op: UnwindSafe,
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