Trait internship::AllowIntern [] [src]

pub trait AllowIntern: Eq + Hash + ToOwned + Guard + 'static {
    unsafe fn provide_per_thread_intern_pool(
    ) -> &'static LocalKey<RefCell<HashSet<Rc<Self>>>>; }

Required Methods

Provide thread-local interned pool for this type.

This is necessary as Rust doesn't allow static variables with generic type, as this can't be monomorphized trivially.

This function is private as Intern relies on assumption that provided pool never change except for the construction/destruction of the Intern.

Implementations on Foreign Types

impl AllowIntern for str
[src]

impl AllowIntern for [u8]
[src]

Implementors