pub struct NoLexerCache;Expand description
A no-op implementation of LexerCache.
Trait Implementations§
Source§impl Clone for NoLexerCache
impl Clone for NoLexerCache
Source§fn clone(&self) -> NoLexerCache
fn clone(&self) -> NoLexerCache
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 Debug for NoLexerCache
impl Debug for NoLexerCache
Source§impl Default for NoLexerCache
impl Default for NoLexerCache
Source§fn default() -> NoLexerCache
fn default() -> NoLexerCache
Returns the “default value” for a type. Read more
Source§impl<L: Language> LexerCache<L> for NoLexerCache
impl<L: Language> LexerCache<L> for NoLexerCache
Source§fn set_lex_output(&mut self, _output: LexOutput<L>)
fn set_lex_output(&mut self, _output: LexOutput<L>)
Sets the lexed output in the cache. Read more
Source§fn get_token(&self, _index: usize) -> Option<Token<L::TokenType>>
fn get_token(&self, _index: usize) -> Option<Token<L::TokenType>>
Gets a token from the cache by index. Read more
Source§fn count_tokens(&self) -> usize
fn count_tokens(&self) -> usize
Gets the total number of tokens in the cache. Read more
Source§fn has_tokens(&self) -> bool
fn has_tokens(&self) -> bool
Checks if the cache contains any tokens. Read more
impl Copy for NoLexerCache
Auto Trait Implementations§
impl Freeze for NoLexerCache
impl RefUnwindSafe for NoLexerCache
impl Send for NoLexerCache
impl Sync for NoLexerCache
impl Unpin for NoLexerCache
impl UnsafeUnpin for NoLexerCache
impl UnwindSafe for NoLexerCache
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