[−][src]Type Definition qjs::Atom
type Atom<'a> = Local<'a, JSAtom>;
Object property names and some strings are stored as Atoms (unique strings) to save memory and allow fast comparison.
Methods
impl<'_> Atom<'_>
[src]
pub fn free(&self)
[src]
Free an Atom
reference.
pub fn to_value(&self) -> Local<Value>
[src]
Convert an Atom
to a Javascript Value
.
pub fn to_str(&self) -> Local<Value>
[src]
Convert an Atom
to a Javascript String
.
pub fn to_cstr(&self) -> CString
[src]
Convert an Atom
to a Local<&CStr>
.