[−][src]Struct mtots::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
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]
&self,
map: I
) -> GMap<(), Symbol, V, DefaultEqF<Symbol>, DefaultHashF<Symbol>, ()> where
I: IntoIterator<Item = (RcStr, V)>,
pub fn translate_vec<T>(&self, vec: Vec<T>) -> Vec<Symbol> where
T: Into<RcStr>,
[src]
T: Into<RcStr>,
Trait Implementations
impl Clone for SymbolRegistryHandle
[src]
fn clone(&self) -> SymbolRegistryHandle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl !RefUnwindSafe for SymbolRegistryHandle
impl !Send for SymbolRegistryHandle
impl !Sync for SymbolRegistryHandle
impl Unpin for SymbolRegistryHandle
impl !UnwindSafe for SymbolRegistryHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,