Struct rquickjs_core::Atom [−][src]
pub struct Atom<'js> { /* fields omitted */ }
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
Create a atom from a javascript value.
Convert the atom to a javascript string .
Trait Implementations
Auto Trait Implementations
impl<'js> !RefUnwindSafe for Atom<'js>
impl<'js> UnwindSafe for Atom<'js>
Blanket Implementations
Mutably borrows from an owned value. Read more