pub struct LexWithTriviaOutput {
pub tokens: Vec<Token>,
pub trivia: Vec<Trivia>,
pub errors: Vec<LexError>,
}Fields§
§tokens: Vec<Token>Non-trivia tokens in source order.
trivia: Vec<Trivia>Comments, CPP directives, and blank-line markers in source order.
errors: Vec<LexError>Recoverable lexical errors in source order.
Implementations§
Trait Implementations§
Source§impl Clone for LexWithTriviaOutput
impl Clone for LexWithTriviaOutput
Source§fn clone(&self) -> LexWithTriviaOutput
fn clone(&self) -> LexWithTriviaOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LexWithTriviaOutput
impl Debug for LexWithTriviaOutput
impl Eq for LexWithTriviaOutput
Source§impl PartialEq for LexWithTriviaOutput
impl PartialEq for LexWithTriviaOutput
Source§fn eq(&self, other: &LexWithTriviaOutput) -> bool
fn eq(&self, other: &LexWithTriviaOutput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LexWithTriviaOutput
Auto Trait Implementations§
impl Freeze for LexWithTriviaOutput
impl RefUnwindSafe for LexWithTriviaOutput
impl Send for LexWithTriviaOutput
impl Sync for LexWithTriviaOutput
impl Unpin for LexWithTriviaOutput
impl UnsafeUnpin for LexWithTriviaOutput
impl UnwindSafe for LexWithTriviaOutput
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