pub struct Event<'src> {
pub span: Span,
pub kind: EventKind<'src>,
}Expand description
An event emitted by the parser, with its source location.
Fields§
§span: SpanThe source location associated with this event.
kind: EventKind<'src>The kind of event.
Trait Implementations§
impl<'src> Eq for Event<'src>
impl<'src> StructuralPartialEq for Event<'src>
Auto Trait Implementations§
impl<'src> Freeze for Event<'src>
impl<'src> RefUnwindSafe for Event<'src>
impl<'src> Send for Event<'src>
impl<'src> Sync for Event<'src>
impl<'src> Unpin for Event<'src>
impl<'src> UnsafeUnpin for Event<'src>
impl<'src> UnwindSafe for Event<'src>
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