pub struct Lexed {
pub tokens: Vec<Token>,
pub comments: Vec<Comment>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of lexing one file.
Fields§
§tokens: Vec<Token>The tokens, always ending with TokenKind::Eof.
comments: Vec<Comment>Ordinary comments, in source order.
diagnostics: Vec<Diagnostic>Lexical errors, in source order.
Trait Implementations§
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