pub struct LexemeInterner { /* private fields */ }Expand description
Deduplicating store of Lexemes, typically one per lexed file.
Interning the same text twice returns two handles to one allocation. The interner is an implementation detail of memory layout: it never affects token equality or fingerprints, which follow text content only.
Implementations§
Trait Implementations§
Source§impl Debug for LexemeInterner
impl Debug for LexemeInterner
Source§impl Default for LexemeInterner
impl Default for LexemeInterner
Source§fn default() -> LexemeInterner
fn default() -> LexemeInterner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LexemeInterner
impl RefUnwindSafe for LexemeInterner
impl Send for LexemeInterner
impl Sync for LexemeInterner
impl Unpin for LexemeInterner
impl UnsafeUnpin for LexemeInterner
impl UnwindSafe for LexemeInterner
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