[][src]Struct throne::StringCache

pub struct StringCache {
    pub wildcard_counter: i32,
    // some fields omitted
}

Fields

wildcard_counter: i32

Methods

impl StringCache[src]

pub fn new() -> StringCache[src]

pub fn str_to_atom(&mut self, text: &str) -> Atom[src]

pub fn str_to_existing_atom(&self, text: &str) -> Option<Atom>[src]

pub fn number_to_atom(n: i32) -> Atom[src]

pub fn atom_to_str(&self, atom: Atom) -> Option<&str>[src]

pub fn atom_to_number(atom: Atom) -> Option<i32>[src]

Trait Implementations

impl Clone for StringCache[src]

impl Debug for StringCache[src]

impl Default for StringCache[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.