pub struct AtomTable { /* private fields */ }Expand description
The atoms one runtime has interned.
Per runtime rather than per process because the reference’s are too: a JSAtom is only
meaningful to the runtime that made it, which is why every accessor takes a JSContext *
or a JSRuntime * and why mixing two runtimes’ atoms is undefined by construction.
Implementations§
Source§impl AtomTable
impl AtomTable
Sourcepub fn text(&self, atom: Atom) -> Option<&str>
pub fn text(&self, atom: Atom) -> Option<&str>
The text atom addresses, or None for JS_ATOM_NULL and out-of-range atoms.
Trait Implementations§
Auto Trait Implementations§
impl Forget for AtomTable
impl Freeze for AtomTable
impl Move for AtomTable
impl RefUnwindSafe for AtomTable
impl Send for AtomTable
impl Sync for AtomTable
impl Unpin for AtomTable
impl UnsafeUnpin for AtomTablewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, u32)>: UnsafeUnpin,
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