Trait eso::borrow::InternRef[][src]

pub trait InternRef<T>: TryInternRef<T> {
    fn intern_ref(&self) -> T;
}
Expand description

A value that can be interned from a reference, where interning cannot fail.

Required methods

fn intern_ref(&self) -> T[src]

Look up or create a static reference for the value denoted by self.

Implementations on Foreign Types

impl InternRef<Rc<str>> for &str[src]

fn intern_ref(&self) -> Rc<str>[src]

impl InternRef<Arc<str>> for &str[src]

fn intern_ref(&self) -> Arc<str>[src]

Implementors