Enum moore_svlog_syntax::ast::Ambiguous
source · [−]pub enum Ambiguous<R> {
Unique(R),
Ambiguous(Vec<R>),
}
Expand description
A parsing result which may be ambiguous.
Variants
Unique(R)
Ambiguous(Vec<R>)
Trait Implementations
sourceimpl<'a, R> ForEachNode<'a> for Ambiguous<R> where
R: ForEachNode<'a>,
impl<'a, R> ForEachNode<'a> for Ambiguous<R> where
R: ForEachNode<'a>,
sourcefn 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.
sourceimpl<'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> StructuralEq for Ambiguous<R>
impl<R> StructuralPartialEq for Ambiguous<R>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more