pub struct JavaScriptLexer {}Implementations§
Source§impl JavaScriptLexer
impl JavaScriptLexer
pub fn new(_config: &JavaScriptLanguage) -> Self
Trait Implementations§
Source§impl Clone for JavaScriptLexer
impl Clone for JavaScriptLexer
Source§fn clone(&self) -> JavaScriptLexer
fn clone(&self) -> JavaScriptLexer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for JavaScriptLexer
impl Default for JavaScriptLexer
Source§fn default() -> JavaScriptLexer
fn default() -> JavaScriptLexer
Returns the “default value” for a type. Read more
Source§impl Lexer<JavaScriptLanguage> for JavaScriptLexer
impl Lexer<JavaScriptLanguage> for JavaScriptLexer
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<JavaScriptLanguage>,
) -> LexOutput<JavaScriptLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<JavaScriptLanguage>, ) -> LexOutput<JavaScriptLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Auto Trait Implementations§
impl Freeze for JavaScriptLexer
impl RefUnwindSafe for JavaScriptLexer
impl Send for JavaScriptLexer
impl Sync for JavaScriptLexer
impl Unpin for JavaScriptLexer
impl UnwindSafe for JavaScriptLexer
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