pub struct AtomTable { /* private fields */ }Implementations§
Source§impl AtomTable
impl AtomTable
pub fn new() -> Self
pub fn intern(&mut self, s: &str) -> Atom
pub fn intern_fast(&mut self, s: &str) -> Atom
pub fn lookup(&self, s: &str) -> Option<Atom>
pub fn intern_concat(&mut self, a: &str, b: &str) -> Atom
pub fn intern_concat_atoms(&mut self, a: Atom, b: Atom) -> Atom
pub fn get(&self, atom: Atom) -> &str
pub fn char_count(&self, atom: Atom) -> usize
pub fn char_code_at(&self, atom: Atom, index: usize) -> Option<u32>
pub fn retain(&mut self, atom: Atom)
pub fn release(&mut self, atom: Atom)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn mark_symbol_atom(&mut self, idx: u32)
pub fn is_symbol_atom(&self, idx: u32) -> bool
pub fn get_array_index(&self, atom: Atom) -> Option<usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AtomTable
impl RefUnwindSafe for AtomTable
impl Send for AtomTable
impl Sync for AtomTable
impl Unpin for AtomTable
impl UnsafeUnpin for AtomTable
impl UnwindSafe for AtomTable
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more