Struct rquickjs_core::Atom
source · [−]pub struct Atom<'js> { /* private fields */ }
Expand description
An atom is value representing the name of a variable of an objects and can be created from any javascript value.
Representation
Atoms in quickjs are handled differently depending on what type of index the represent.
When the atom represents a number like index, like object[1]
the atom is just
a normal number.
However when the atom represents a string link index like object["foo"]
or object.foo
the atom represents a value in a hashmap.
Implementations
Trait Implementations
Auto Trait Implementations
impl<'js> !RefUnwindSafe for Atom<'js>
impl<'js> !Send for Atom<'js>
impl<'js> !Sync for Atom<'js>
impl<'js> Unpin for Atom<'js>
impl<'js> UnwindSafe for Atom<'js>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more