#[repr(transparent)]pub struct JsString(_);
Expand description
A JavaScript string primitive value.
Implementations
sourceimpl JsString
impl JsString
pub fn size<'a, C: Context<'a>>(&self, cx: &mut C) -> isize
pub fn value<'a, C: Context<'a>>(&self, cx: &mut C) -> String
pub fn new<'a, C: Context<'a>, S: AsRef<str>>(
cx: &mut C,
val: S
) -> Handle<'a, JsString>
pub fn try_new<'a, C: Context<'a>, S: AsRef<str>>(
cx: &mut C,
val: S
) -> StringResult<'a>
Trait Implementations
sourceimpl<'a> JsResultExt<'a, JsString> for StringResult<'a>
impl<'a> JsResultExt<'a, JsString> for StringResult<'a>
Auto Trait Implementations
impl RefUnwindSafe for JsString
impl !Send for JsString
impl !Sync for JsString
impl Unpin for JsString
impl UnwindSafe for JsString
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