pub struct WatLexer<'config> { /* private fields */ }Expand description
Lexer for the WebAssembly Text (WAT) language.
Implementations§
Trait Implementations§
Source§impl<'config> Lexer<WatLanguage> for WatLexer<'config>
impl<'config> Lexer<WatLanguage> for WatLexer<'config>
Source§fn lex<'a, S>(
&self,
text: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<WatLanguage>,
) -> OakDiagnostics<Tokens<WatLanguage>>
fn lex<'a, S>( &self, text: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<WatLanguage>, ) -> OakDiagnostics<Tokens<WatLanguage>>
Tokenizes the given source text into a sequence of tokens. Read more
Auto Trait Implementations§
impl<'config> Freeze for WatLexer<'config>
impl<'config> RefUnwindSafe for WatLexer<'config>
impl<'config> Send for WatLexer<'config>
impl<'config> Sync for WatLexer<'config>
impl<'config> Unpin for WatLexer<'config>
impl<'config> UnsafeUnpin for WatLexer<'config>
impl<'config> UnwindSafe for WatLexer<'config>
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