[−][src]Struct rustc_span::symbol::Interner

pub struct Interner {
    arena: DroplessArena,
    names: FxHashMap<&'static str, Symbol>,
    strings: Vec<&'static str>,
}

Fields

arena: DroplessArenanames: FxHashMap<&'static str, Symbol>strings: Vec<&'static str>

Implementations

impl Interner[src]

pub fn fresh() -> Self[src]

impl Interner[src]

pub(in symbol) fn prefill(
    init: &[&'static str]
) -> Self
[src]

pub fn intern(&mut self, string: &str) -> Symbol[src]

pub fn get(&self, symbol: Symbol) -> &str[src]

Trait Implementations

impl Default for Interner[src]

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

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.