[][src]Struct simple_symbol::Interner

pub struct Interner { /* fields omitted */ }

Implements naive string internment.

Requires O(n) heap space to store unique strings, in return for O(1) symbol equality checks and faster symbol hashing.

Does NOT garbage collect interned strings: the memory is intentionally leaked for the duration of the program. This is only suitable for short-lived processes (e.g. compilers).

Trait Implementations

impl Debug for Interner[src]

impl Default for Interner[src]

Auto Trait Implementations

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.