pub struct JsonLexer<'config> { /* private fields */ }Expand description
JSON 词法分析
Implementations§
Trait Implementations§
Source§impl<'config> Lexer<JsonLanguage> for JsonLexer<'config>
impl<'config> Lexer<JsonLanguage> for JsonLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<JsonLanguage>,
) -> LexOutput<JsonLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<JsonLanguage>, ) -> LexOutput<JsonLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Auto Trait Implementations§
impl<'config> Freeze for JsonLexer<'config>
impl<'config> RefUnwindSafe for JsonLexer<'config>
impl<'config> Send for JsonLexer<'config>
impl<'config> Sync for JsonLexer<'config>
impl<'config> Unpin for JsonLexer<'config>
impl<'config> UnwindSafe for JsonLexer<'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