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