pub enum Name<'a> {
IdentName(IdentName<'a>),
Error(Error<'a>),
}Expand description
Abstract Name — pattern-match to access the concrete type.
Variants§
Implementations§
Trait Implementations§
Source§impl<'a> GrammarNodeType<'a> for Name<'a>
impl<'a> GrammarNodeType<'a> for Name<'a>
Source§fn from_result(
stmt_result: &'a AnyParsedStatement<'a>,
id: AnyNodeId,
) -> Option<Self>
fn from_result( stmt_result: &'a AnyParsedStatement<'a>, id: AnyNodeId, ) -> Option<Self>
Resolve
id to Self, or None if null, invalid, or tag mismatch.impl<'a> Copy for Name<'a>
Auto Trait Implementations§
impl<'a> Freeze for Name<'a>
impl<'a> !RefUnwindSafe for Name<'a>
impl<'a> !Send for Name<'a>
impl<'a> !Sync for Name<'a>
impl<'a> Unpin for Name<'a>
impl<'a> UnsafeUnpin for Name<'a>
impl<'a> !UnwindSafe for Name<'a>
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