pub struct ErrorNode { /* private fields */ }Expand description
An error-recovery node wrapping the tokens the parser skipped.
The one node kind with no rule in family.ungram.
Trait Implementations§
Source§impl AstNode for ErrorNode
impl AstNode for ErrorNode
Source§fn cast(syntax: SyntaxNode) -> Option<Self>
fn cast(syntax: SyntaxNode) -> Option<Self>
Wraps
syntax if its kind matches this type; None otherwise.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying untyped node.
impl Eq for ErrorNode
impl StructuralPartialEq for ErrorNode
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorNode
impl !Send for ErrorNode
impl !Sync for ErrorNode
impl !UnwindSafe for ErrorNode
impl Freeze for ErrorNode
impl Unpin for ErrorNode
impl UnsafeUnpin for ErrorNode
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