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