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