pub struct LexOutcome {
pub tokens: Vec<Token>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
The result of losslessly tokenizing a source string.
Fields§
§tokens: Vec<Token>Every token in source order, including trivia and invalid regions.
diagnostics: Vec<Diagnostic>Lexical diagnostics in source order.
Trait Implementations§
Source§impl Clone for LexOutcome
impl Clone for LexOutcome
Source§fn clone(&self) -> LexOutcome
fn clone(&self) -> LexOutcome
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 LexOutcome
impl Debug for LexOutcome
Source§impl Default for LexOutcome
impl Default for LexOutcome
Source§fn default() -> LexOutcome
fn default() -> LexOutcome
Returns the “default value” for a type. Read more
impl Eq for LexOutcome
Source§impl PartialEq for LexOutcome
impl PartialEq for LexOutcome
impl StructuralPartialEq for LexOutcome
Auto Trait Implementations§
impl Freeze for LexOutcome
impl RefUnwindSafe for LexOutcome
impl Send for LexOutcome
impl Sync for LexOutcome
impl Unpin for LexOutcome
impl UnsafeUnpin for LexOutcome
impl UnwindSafe for LexOutcome
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