pub struct Lexed {
pub tokens: Vec<Token>,
pub repairs: Vec<Diagnostic>,
pub errors: Vec<Diagnostic>,
pub comments: Vec<(String, Span)>,
}Expand description
Result of tokenizing: the token stream, hard lexical errors, healing diagnostics, and the comments found along the way (trivia for the formatter).
Fields§
§tokens: Vec<Token>§repairs: Vec<Diagnostic>§errors: Vec<Diagnostic>§comments: Vec<(String, Span)>Auto Trait Implementations§
impl Freeze for Lexed
impl RefUnwindSafe for Lexed
impl Send for Lexed
impl Sync for Lexed
impl Unpin for Lexed
impl UnsafeUnpin for Lexed
impl UnwindSafe for Lexed
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