Struct proc_macro::bridge::symbol::Interner
source · struct Interner {
arena: Arena,
names: HashMap<&'static str, Symbol, BuildHasherDefault<FxHasher>>,
strings: Vec<&'static str>,
sym_base: NonZeroU32,
}
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Expand description
Basic interner for a Symbol
, inspired by the one in rustc_span
.
Fields§
§arena: Arena
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)names: HashMap<&'static str, Symbol, BuildHasherDefault<FxHasher>>
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)strings: Vec<&'static str>
🔬This is a nightly-only experimental API. (
§proc_macro_internals
#27812)sym_base: NonZeroU32
🔬This is a nightly-only experimental API. (
proc_macro_internals
#27812)Implementations§
source§impl Interner
impl Interner
Auto Trait Implementations§
impl !RefUnwindSafe for Interner
impl !Send for Interner
impl !Sync for Interner
impl Unpin for Interner
impl UnwindSafe for Interner
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