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§impl Debug for LexOutcome
impl Debug for LexOutcome
Source§impl Default for LexOutcome
impl Default for LexOutcome
Source§impl<'de> Deserialize<'de> for LexOutcome
impl<'de> Deserialize<'de> for LexOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LexOutcome
Source§impl PartialEq for LexOutcome
impl PartialEq for LexOutcome
Source§impl Serialize for LexOutcome
impl Serialize 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