pub struct JsString { /* private fields */ }Expand description
An immutable string, stored on the GC heap.
QuickJS interns strings (JSString) and shares them between values, so a
Value only ever holds a handle. Strings here are not yet interned as atoms —
that arrives with the property-key work in M4 — so two equal strings are two
allocations that compare by content.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for JsString
impl Freeze for JsString
impl Move for JsString
impl RefUnwindSafe for JsString
impl Send for JsString
impl Sync for JsString
impl Unpin for JsString
impl UnsafeUnpin for JsString
impl UnwindSafe for JsString
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