pub enum Ambiguous<R> {
Unique(R),
Ambiguous(Vec<R>),
}Expand description
A parsing result which may be ambiguous.
Variants§
Trait Implementations§
Source§impl<'a, R> ForEachNode<'a> for Ambiguous<R>where
R: ForEachNode<'a>,
impl<'a, R> ForEachNode<'a> for Ambiguous<R>where
R: ForEachNode<'a>,
Source§fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to this node.
Source§impl<'a, R> WalkVisitor<'a> for Ambiguous<R>where
R: WalkVisitor<'a>,
impl<'a, R> WalkVisitor<'a> for Ambiguous<R>where
R: WalkVisitor<'a>,
impl<R: Eq> Eq for Ambiguous<R>
impl<R> StructuralPartialEq for Ambiguous<R>
Auto Trait Implementations§
impl<R> Freeze for Ambiguous<R>where
R: Freeze,
impl<R> RefUnwindSafe for Ambiguous<R>where
R: RefUnwindSafe,
impl<R> Send for Ambiguous<R>where
R: Send,
impl<R> Sync for Ambiguous<R>where
R: Sync,
impl<R> Unpin for Ambiguous<R>where
R: Unpin,
impl<R> UnwindSafe for Ambiguous<R>where
R: UnwindSafe,
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