pub struct CsvLexer { /* private fields */ }Implementations§
Source§impl CsvLexer
impl CsvLexer
pub fn new(_config: CsvLanguage) -> Self
pub fn with_separator(self, separator: char) -> Self
pub fn with_quote_char(self, quote: char) -> Self
Trait Implementations§
Source§impl Lexer<CsvLanguage> for CsvLexer
impl Lexer<CsvLanguage> for CsvLexer
Source§fn lex(&self, source: impl Source) -> LexOutput<CsvLanguage>
fn lex(&self, source: impl Source) -> LexOutput<CsvLanguage>
Tokenizes the given source text into a sequence of tokens. Read more
Source§fn lex_incremental(
&self,
source: impl Source,
_changed: usize,
_cache: IncrementalCache<'_, CsvLanguage>,
) -> LexOutput<CsvLanguage>
fn lex_incremental( &self, source: impl Source, _changed: usize, _cache: IncrementalCache<'_, CsvLanguage>, ) -> LexOutput<CsvLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Auto Trait Implementations§
impl Freeze for CsvLexer
impl RefUnwindSafe for CsvLexer
impl Send for CsvLexer
impl Sync for CsvLexer
impl Unpin for CsvLexer
impl UnwindSafe for CsvLexer
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