[][src]Struct mtots::SymbolRegistryHandle

pub struct SymbolRegistryHandle(_);

Due to the ubiquity of how symbol registries are used (at least in this codebase), I'm just going to make it easier on myself and always pass around the registry by Rc (via SymbolRegistryHandle), rather than allow the use of a SymbolRegistry directly outside this module

Implementations

impl SymbolRegistryHandle[src]

pub fn new() -> SymbolRegistryHandle[src]

pub fn intern_rcstr(&self, rcstr: &RcStr) -> Symbol[src]

pub fn intern_str(&self, s: &str) -> Symbol[src]

pub fn rcstr(&self, symbol: Symbol) -> Ref<RcStr>[src]

pub fn translate_hmap<V, I>(
    &self,
    map: I
) -> GMap<(), Symbol, V, DefaultEqF<Symbol>, DefaultHashF<Symbol>, ()> where
    I: IntoIterator<Item = (RcStr, V)>, 
[src]

pub fn translate_vec<T>(&self, vec: Vec<T>) -> Vec<Symbol> where
    T: Into<RcStr>, 
[src]

Trait Implementations

impl Clone for SymbolRegistryHandle[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.