/// Creates a new JS value which is a string.
///
/// The utf-8 string provided is copied to the JS heap and the string will
/// be owned by the JS garbage collector.
Creates a new JS value which is a string.
The utf-8 string provided is copied to the JS heap and the string will
be owned by the JS garbage collector.
Creates a new JS value which is a string . The utf - 8 string provided is copied to the JS heap and the string will be owned by the JS garbage collector .
pub fn from_str(s: &str) -> JsValue {
        unsafe {
            JsValue { idx: __wbindgen_string_new(s.as_ptr(), s.len()) }
        }
    }
pub fn from_str ( s : & str ) -> JsValue { unsafe { JsValue { idx : __wbindgen_string_new ( s . as_ptr ( ) , s . len ( ) ) } } }
Creates a new JS value which is a string.
Creates a new JS value which is a string .
s
&str