pub struct FailedNode<'a, C> {
pub id: NodeId,
pub ctx: &'a C,
pub status: Status,
pub span: Span,
}Expand description
One parse-tree node offered to the user’s diagnostic hook.
Fields§
§id: NodeIdThe node’s id (usable for further tree queries).
ctx: &'a CThe node’s parse context.
status: StatusWhy the node is a candidate: Status::Failed, or
Status::Unparsed when the schedule ran out with work left.
span: SpanThe node’s region.
Trait Implementations§
Source§impl<'a, C: Clone> Clone for FailedNode<'a, C>
impl<'a, C: Clone> Clone for FailedNode<'a, C>
impl<'a, C: Copy> Copy for FailedNode<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for FailedNode<'a, C>
impl<'a, C> RefUnwindSafe for FailedNode<'a, C>where
&'a C: RefUnwindSafe,
impl<'a, C> Send for FailedNode<'a, C>
impl<'a, C> Sync for FailedNode<'a, C>
impl<'a, C> Unpin for FailedNode<'a, C>
impl<'a, C> UnsafeUnpin for FailedNode<'a, C>where
&'a C: UnsafeUnpin,
impl<'a, C> UnwindSafe for FailedNode<'a, C>where
&'a C: 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