<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `JsString` struct in crate `js_sys`."><meta name="keywords" content="rust, rustlang, rust-lang, JsString"><title>js_sys::JsString - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../js_sys/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct JsString</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.as_char">as_char</a><a href="#method.char_at">char_at</a><a href="#method.char_code_at">char_code_at</a><a href="#method.code_point_at">code_point_at</a><a href="#method.concat">concat</a><a href="#method.ends_with">ends_with</a><a href="#method.from_char_code">from_char_code</a><a href="#method.from_char_code1">from_char_code1</a><a href="#method.from_char_code2">from_char_code2</a><a href="#method.from_char_code3">from_char_code3</a><a href="#method.from_char_code4">from_char_code4</a><a href="#method.from_char_code5">from_char_code5</a><a href="#method.from_code_point">from_code_point</a><a href="#method.from_code_point1">from_code_point1</a><a href="#method.from_code_point2">from_code_point2</a><a href="#method.from_code_point3">from_code_point3</a><a href="#method.from_code_point4">from_code_point4</a><a href="#method.from_code_point5">from_code_point5</a><a href="#method.includes">includes</a><a href="#method.index_of">index_of</a><a href="#method.is_valid_utf16">is_valid_utf16</a><a href="#method.iter">iter</a><a href="#method.last_index_of">last_index_of</a><a href="#method.length">length</a><a href="#method.locale_compare">locale_compare</a><a href="#method.match_">match_</a><a href="#method.normalize">normalize</a><a href="#method.pad_end">pad_end</a><a href="#method.pad_start">pad_start</a><a href="#method.raw">raw</a><a href="#method.raw_0">raw_0</a><a href="#method.raw_1">raw_1</a><a href="#method.raw_2">raw_2</a><a href="#method.raw_3">raw_3</a><a href="#method.raw_4">raw_4</a><a href="#method.raw_5">raw_5</a><a href="#method.raw_6">raw_6</a><a href="#method.raw_7">raw_7</a><a href="#method.repeat">repeat</a><a href="#method.replace">replace</a><a href="#method.replace_by_pattern">replace_by_pattern</a><a href="#method.replace_by_pattern_with_function">replace_by_pattern_with_function</a><a href="#method.replace_with_function">replace_with_function</a><a href="#method.search">search</a><a href="#method.slice">slice</a><a href="#method.split">split</a><a href="#method.split_by_pattern">split_by_pattern</a><a href="#method.split_by_pattern_limit">split_by_pattern_limit</a><a href="#method.split_limit">split_limit</a><a href="#method.starts_with">starts_with</a><a href="#method.substr">substr</a><a href="#method.substring">substring</a><a href="#method.to_locale_lower_case">to_locale_lower_case</a><a href="#method.to_locale_upper_case">to_locale_upper_case</a><a href="#method.to_lower_case">to_lower_case</a><a href="#method.to_string">to_string</a><a href="#method.to_upper_case">to_upper_case</a><a href="#method.trim">trim</a><a href="#method.trim_end">trim_end</a><a href="#method.trim_left">trim_left</a><a href="#method.trim_right">trim_right</a><a href="#method.trim_start">trim_start</a><a href="#method.try_from">try_from</a><a href="#method.value_of">value_of</a></div><a class="sidebar-title" href="#deref-methods">Methods from Deref<Target=Object></a><div class="sidebar-links"><a href="#method.constructor">constructor</a><a href="#method.has_own_property">has_own_property</a><a href="#method.is_prototype_of">is_prototype_of</a><a href="#method.property_is_enumerable">property_is_enumerable</a><a href="#method.to_locale_string">to_locale_string</a><a href="#method.to_string-1">to_string</a><a href="#method.value_of-1">value_of</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-AsRef%3CJsString%3E">AsRef<JsString></a><a href="#impl-AsRef%3CJsValue%3E">AsRef<JsValue></a><a href="#impl-AsRef%3CObject%3E">AsRef<Object></a><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Deref">Deref</a><a href="#impl-Eq">Eq</a><a href="#impl-From%3C%26%27a%20JsString%3E">From<&'a JsString></a><a href="#impl-From%3C%26%27a%20str%3E">From<&'a str></a><a href="#impl-From%3CJsString%3E">From<JsString></a><a href="#impl-From%3CJsValue%3E">From<JsValue></a><a href="#impl-From%3CString%3E">From<String></a><a href="#impl-From%3Cchar%3E">From<char></a><a href="#impl-FromWasmAbi">FromWasmAbi</a><a href="#impl-IntoWasmAbi">IntoWasmAbi</a><a href="#impl-JsCast">JsCast</a><a href="#impl-OptionFromWasmAbi">OptionFromWasmAbi</a><a href="#impl-OptionIntoWasmAbi">OptionIntoWasmAbi</a><a href="#impl-PartialEq%3C%26%27a%20String%3E">PartialEq<&'a String></a><a href="#impl-PartialEq%3C%26%27a%20str%3E">PartialEq<&'a str></a><a href="#impl-PartialEq%3CJsString%3E">PartialEq<JsString></a><a href="#impl-PartialEq%3CString%3E">PartialEq<String></a><a href="#impl-PartialEq%3Cstr%3E">PartialEq<str></a><a href="#impl-RefFromWasmAbi">RefFromWasmAbi</a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a><a href="#impl-WasmDescribe">WasmDescribe</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ReturnWasmAbi">ReturnWasmAbi</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>js_sys</a></p><script>window.sidebarCurrent = {name: 'JsString', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>js_sys</a>::<wbr><a class="struct" href=''>JsString</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'><span class="docblock attributes top-attr">#[repr(transparent)]</span>pub struct JsString { /* fields omitted */ }</pre></div><div class='docblock'></div><h2 id='implementations' class='small-section-header'>Implementations<a href='#implementations' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.length' class="method"><code id='length.v'>pub fn <a href='#method.length' class='fnname'>length</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The length property of a String object indicates the length of a string, in UTF-16 code units.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length">MDN documentation</a></p> </div></div><h3 id='impl-1' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.char_at' class="method"><code id='char_at.v'>pub fn <a href='#method.char_at' class='fnname'>char_at</a>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The String object's <code>charAt()</code> method returns a new string consisting of the single UTF-16 code unit located at the specified offset into the string.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charAt">MDN documentation</a></p> </div></div><h3 id='impl-2' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-2' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.char_code_at' class="method"><code id='char_code_at.v'>pub fn <a href='#method.char_code_at' class='fnname'>char_code_at</a>(&self, index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>charCodeAt()</code> method returns an integer between 0 and 65535 representing the UTF-16 code unit at the given index (the UTF-16 code unit matches the Unicode code point for code points representable in a single UTF-16 code unit, but might also be the first code unit of a surrogate pair for code points not representable in a single UTF-16 code unit, e.g. Unicode code points > 0x10000). If you want the entire code point value, use <code>codePointAt()</code>.</p> <p>Returns <code>NaN</code> if index is out of range.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt">MDN documentation</a></p> </div></div><h3 id='impl-3' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-3' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.code_point_at' class="method"><code id='code_point_at.v'>pub fn <a href='#method.code_point_at' class='fnname'>code_point_at</a>(&self, pos: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>codePointAt()</code> method returns a non-negative integer that is the Unicode code point value.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt">MDN documentation</a></p> </div></div><h3 id='impl-4' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-4' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.concat' class="method"><code id='concat.v'>pub fn <a href='#method.concat' class='fnname'>concat</a>(&self, string_2: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>concat()</code> method concatenates the string arguments to the calling string and returns a new string.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/concat">MDN documentation</a></p> </div></div><h3 id='impl-5' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-5' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.ends_with' class="method"><code id='ends_with.v'>pub fn <a href='#method.ends_with' class='fnname'>ends_with</a>(&self, search_string: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, length: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>endsWith()</code> method determines whether a string ends with the characters of a specified string, returning true or false as appropriate.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith">MDN documentation</a></p> </div></div><h3 id='impl-6' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-6' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_char_code' class="method"><code id='from_char_code.v'>pub fn <a href='#method.from_char_code' class='fnname'>from_char_code</a>(char_codes: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>String.fromCharCode()</code> method returns a string created from the specified sequence of UTF-16 code units.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode">MDN documentation</a></p> <h1 id="notes" class="section-header"><a href="#notes">Notes</a></h1> <p>There are a few bindings to <code>from_char_code</code> in <code>js-sys</code>: <code>from_char_code1</code>, <code>from_char_code2</code>, etc... with different arities.</p> <p>Additionally, this function accepts <code>u16</code> for character codes, but fixing others requires a breaking change release (see https://github.com/rustwasm/wasm-bindgen/issues/1460 for details).</p> </div></div><h3 id='impl-7' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-7' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_char_code1' class="method"><code id='from_char_code1.v'>pub fn <a href='#method.from_char_code1' class='fnname'>from_char_code1</a>(a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode">MDN documentation</a></p> </div></div><h3 id='impl-8' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-8' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_char_code2' class="method"><code id='from_char_code2.v'>pub fn <a href='#method.from_char_code2' class='fnname'>from_char_code2</a>(a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode">MDN documentation</a></p> </div></div><h3 id='impl-9' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-9' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_char_code3' class="method"><code id='from_char_code3.v'>pub fn <a href='#method.from_char_code3' class='fnname'>from_char_code3</a>(a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode">MDN documentation</a></p> </div></div><h3 id='impl-10' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-10' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_char_code4' class="method"><code id='from_char_code4.v'>pub fn <a href='#method.from_char_code4' class='fnname'>from_char_code4</a>(a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, d: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode">MDN documentation</a></p> </div></div><h3 id='impl-11' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-11' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_char_code5' class="method"><code id='from_char_code5.v'>pub fn <a href='#method.from_char_code5' class='fnname'>from_char_code5</a>(a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, d: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, e: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode">MDN documentation</a></p> </div></div><h3 id='impl-12' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-12' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_code_point' class="method"><code id='from_code_point.v'>pub fn <a href='#method.from_code_point' class='fnname'>from_code_point</a>(code_points: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>String.fromCodePoint()</code> method returns a string created by using the specified sequence of code points.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint">MDN documentation</a></p> <h1 id="exceptions" class="section-header"><a href="#exceptions">Exceptions</a></h1> <p>A RangeError is thrown if an invalid Unicode code point is given</p> <h1 id="notes-1" class="section-header"><a href="#notes-1">Notes</a></h1> <p>There are a few bindings to <code>from_code_point</code> in <code>js-sys</code>: <code>from_code_point1</code>, <code>from_code_point2</code>, etc... with different arities.</p> </div></div><h3 id='impl-13' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-13' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_code_point1' class="method"><code id='from_code_point1.v'>pub fn <a href='#method.from_code_point1' class='fnname'>from_code_point1</a>(a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint">MDN documentation</a></p> </div></div><h3 id='impl-14' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-14' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_code_point2' class="method"><code id='from_code_point2.v'>pub fn <a href='#method.from_code_point2' class='fnname'>from_code_point2</a>(a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint">MDN documentation</a></p> </div></div><h3 id='impl-15' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-15' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_code_point3' class="method"><code id='from_code_point3.v'>pub fn <a href='#method.from_code_point3' class='fnname'>from_code_point3</a>(a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint">MDN documentation</a></p> </div></div><h3 id='impl-16' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-16' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_code_point4' class="method"><code id='from_code_point4.v'>pub fn <a href='#method.from_code_point4' class='fnname'>from_code_point4</a>(<br> a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> d: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint">MDN documentation</a></p> </div></div><h3 id='impl-17' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-17' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_code_point5' class="method"><code id='from_code_point5.v'>pub fn <a href='#method.from_code_point5' class='fnname'>from_code_point5</a>(<br> a: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> b: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> d: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> e: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCodePoint">MDN documentation</a></p> </div></div><h3 id='impl-18' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-18' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.includes' class="method"><code id='includes.v'>pub fn <a href='#method.includes' class='fnname'>includes</a>(&self, search_string: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, position: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>includes()</code> method determines whether one string may be found within another string, returning true or false as appropriate.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes">MDN documentation</a></p> </div></div><h3 id='impl-19' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-19' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.index_of' class="method"><code id='index_of.v'>pub fn <a href='#method.index_of' class='fnname'>index_of</a>(&self, search_value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, from_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>indexOf()</code> method returns the index within the calling String object of the first occurrence of the specified value, starting the search at fromIndex. Returns -1 if the value is not found.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf">MDN documentation</a></p> </div></div><h3 id='impl-20' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-20' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.last_index_of' class="method"><code id='last_index_of.v'>pub fn <a href='#method.last_index_of' class='fnname'>last_index_of</a>(&self, search_value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, from_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>lastIndexOf()</code> method returns the index within the calling String object of the last occurrence of the specified value, searching backwards from fromIndex. Returns -1 if the value is not found.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf">MDN documentation</a></p> </div></div><h3 id='impl-21' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-21' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.locale_compare' class="method"><code id='locale_compare.v'>pub fn <a href='#method.locale_compare' class='fnname'>locale_compare</a>(<br> &self, <br> compare_string: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> locales: &<a class="struct" href="../js_sys/struct.Array.html" title="struct js_sys::Array">Array</a>, <br> options: &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a><br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>localeCompare()</code> method returns a number indicating whether a reference string comes before or after or is the same as the given string in sort order.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare">MDN documentation</a></p> </div></div><h3 id='impl-22' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-22' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.match_' class="method"><code id='match_.v'>pub fn <a href='#method.match_' class='fnname'>match_</a>(&self, pattern: &<a class="struct" href="../js_sys/struct.RegExp.html" title="struct js_sys::RegExp">RegExp</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>match()</code> method retrieves the matches when matching a string against a regular expression.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match">MDN documentation</a></p> </div></div><h3 id='impl-23' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-23' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.normalize' class="method"><code id='normalize.v'>pub fn <a href='#method.normalize' class='fnname'>normalize</a>(&self, form: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>normalize()</code> method returns the Unicode Normalization Form of a given string (if the value isn't a string, it will be converted to one first).</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize">MDN documentation</a></p> </div></div><h3 id='impl-24' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-24' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.pad_end' class="method"><code id='pad_end.v'>pub fn <a href='#method.pad_end' class='fnname'>pad_end</a>(&self, target_length: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pad_string: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>padEnd()</code> method pads the current string with a given string (repeated, if needed) so that the resulting string reaches a given length. The padding is applied from the end (right) of the current string.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd">MDN documentation</a></p> </div></div><h3 id='impl-25' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-25' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.pad_start' class="method"><code id='pad_start.v'>pub fn <a href='#method.pad_start' class='fnname'>pad_start</a>(&self, target_length: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pad_string: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>padStart()</code> method pads the current string with another string (repeated, if needed) so that the resulting string reaches the given length. The padding is applied from the start (left) of the current string.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart">MDN documentation</a></p> </div></div><h3 id='impl-26' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-26' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.repeat' class="method"><code id='repeat.v'>pub fn <a href='#method.repeat' class='fnname'>repeat</a>(&self, count: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>repeat()</code> method constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat">MDN documentation</a></p> </div></div><h3 id='impl-27' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-27' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.replace' class="method"><code id='replace.v'>pub fn <a href='#method.replace' class='fnname'>replace</a>(&self, pattern: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, replacement: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>replace()</code> method returns a new string with some or all matches of a pattern replaced by a replacement. The pattern can be a string or a RegExp, and the replacement can be a string or a function to be called for each match.</p> <p>Note: The original string will remain unchanged.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace">MDN documentation</a></p> </div></div><h3 id='impl-28' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-28' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.replace_with_function' class="method"><code id='replace_with_function.v'>pub fn <a href='#method.replace_with_function' class='fnname'>replace_with_function</a>(<br> &self, <br> pattern: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> replacement: &<a class="struct" href="../js_sys/struct.Function.html" title="struct js_sys::Function">Function</a><br>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace">MDN documentation</a></p> </div></div><h3 id='impl-29' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-29' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.replace_by_pattern' class="method"><code id='replace_by_pattern.v'>pub fn <a href='#method.replace_by_pattern' class='fnname'>replace_by_pattern</a>(<br> &self, <br> pattern: &<a class="struct" href="../js_sys/struct.RegExp.html" title="struct js_sys::RegExp">RegExp</a>, <br> replacement: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'></div></div><h3 id='impl-30' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-30' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.replace_by_pattern_with_function' class="method"><code id='replace_by_pattern_with_function.v'>pub fn <a href='#method.replace_by_pattern_with_function' class='fnname'>replace_by_pattern_with_function</a>(<br> &self, <br> pattern: &<a class="struct" href="../js_sys/struct.RegExp.html" title="struct js_sys::RegExp">RegExp</a>, <br> replacement: &<a class="struct" href="../js_sys/struct.Function.html" title="struct js_sys::Function">Function</a><br>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace">MDN documentation</a></p> </div></div><h3 id='impl-31' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-31' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.search' class="method"><code id='search.v'>pub fn <a href='#method.search' class='fnname'>search</a>(&self, pattern: &<a class="struct" href="../js_sys/struct.RegExp.html" title="struct js_sys::RegExp">RegExp</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>search()</code> method executes a search for a match between a regular expression and this String object.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/search">MDN documentation</a></p> </div></div><h3 id='impl-32' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-32' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.slice' class="method"><code id='slice.v'>pub fn <a href='#method.slice' class='fnname'>slice</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, end: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>slice()</code> method extracts a section of a string and returns it as a new string, without modifying the original string.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice">MDN documentation</a></p> </div></div><h3 id='impl-33' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-33' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.split' class="method"><code id='split.v'>pub fn <a href='#method.split' class='fnname'>split</a>(&self, separator: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="struct" href="../js_sys/struct.Array.html" title="struct js_sys::Array">Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>split()</code> method splits a String object into an array of strings by separating the string into substrings, using a specified separator string to determine where to make each split.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split">MDN documentation</a></p> </div></div><h3 id='impl-34' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-34' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.split_limit' class="method"><code id='split_limit.v'>pub fn <a href='#method.split_limit' class='fnname'>split_limit</a>(&self, separator: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, limit: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../js_sys/struct.Array.html" title="struct js_sys::Array">Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split">MDN documentation</a></p> </div></div><h3 id='impl-35' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-35' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.split_by_pattern' class="method"><code id='split_by_pattern.v'>pub fn <a href='#method.split_by_pattern' class='fnname'>split_by_pattern</a>(&self, pattern: &<a class="struct" href="../js_sys/struct.RegExp.html" title="struct js_sys::RegExp">RegExp</a>) -> <a class="struct" href="../js_sys/struct.Array.html" title="struct js_sys::Array">Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split">MDN documentation</a></p> </div></div><h3 id='impl-36' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-36' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.split_by_pattern_limit' class="method"><code id='split_by_pattern_limit.v'>pub fn <a href='#method.split_by_pattern_limit' class='fnname'>split_by_pattern_limit</a>(&self, pattern: &<a class="struct" href="../js_sys/struct.RegExp.html" title="struct js_sys::RegExp">RegExp</a>, limit: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../js_sys/struct.Array.html" title="struct js_sys::Array">Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split">MDN documentation</a></p> </div></div><h3 id='impl-37' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-37' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.starts_with' class="method"><code id='starts_with.v'>pub fn <a href='#method.starts_with' class='fnname'>starts_with</a>(&self, search_string: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, position: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>startsWith()</code> method determines whether a string begins with the characters of a specified string, returning true or false as appropriate.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith">MDN documentation</a></p> </div></div><h3 id='impl-38' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-38' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.substring' class="method"><code id='substring.v'>pub fn <a href='#method.substring' class='fnname'>substring</a>(&self, index_start: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, index_end: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>substring()</code> method returns the part of the string between the start and end indexes, or to the end of the string.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring">MDN documentation</a></p> </div></div><h3 id='impl-39' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-39' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.substr' class="method"><code id='substr.v'>pub fn <a href='#method.substr' class='fnname'>substr</a>(&self, start: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>, length: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>substr()</code> method returns the part of a string between the start index and a number of characters after it.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr">MDN documentation</a></p> </div></div><h3 id='impl-40' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-40' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_locale_lower_case' class="method"><code id='to_locale_lower_case.v'>pub fn <a href='#method.to_locale_lower_case' class='fnname'>to_locale_lower_case</a>(&self, locale: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>toLocaleLowerCase()</code> method returns the calling string value converted to lower case, according to any locale-specific case mappings.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleLowerCase">MDN documentation</a></p> </div></div><h3 id='impl-41' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-41' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_locale_upper_case' class="method"><code id='to_locale_upper_case.v'>pub fn <a href='#method.to_locale_upper_case' class='fnname'>to_locale_upper_case</a>(&self, locale: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>toLocaleUpperCase()</code> method returns the calling string value converted to upper case, according to any locale-specific case mappings.</p> <p><a href="https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/String/toLocaleUpperCase">MDN documentation</a></p> </div></div><h3 id='impl-42' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-42' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_lower_case' class="method"><code id='to_lower_case.v'>pub fn <a href='#method.to_lower_case' class='fnname'>to_lower_case</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>toLowerCase()</code> method returns the calling string value converted to lower case.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase">MDN documentation</a></p> </div></div><h3 id='impl-43' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-43' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_string' class="method"><code id='to_string.v'>pub fn <a href='#method.to_string' class='fnname'>to_string</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>toString()</code> method returns a string representing the specified object.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toString">MDN documentation</a></p> </div></div><h3 id='impl-44' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-44' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.to_upper_case' class="method"><code id='to_upper_case.v'>pub fn <a href='#method.to_upper_case' class='fnname'>to_upper_case</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>toUpperCase()</code> method returns the calling string value converted to uppercase (the value will be converted to a string if it isn't one).</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toUpperCase">MDN documentation</a></p> </div></div><h3 id='impl-45' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-45' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.trim' class="method"><code id='trim.v'>pub fn <a href='#method.trim' class='fnname'>trim</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>trim()</code> method removes whitespace from both ends of a string. Whitespace in this context is all the whitespace characters (space, tab, no-break space, etc.) and all the line terminator characters (LF, CR, etc.).</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trim">MDN documentation</a></p> </div></div><h3 id='impl-46' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-46' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.trim_end' class="method"><code id='trim_end.v'>pub fn <a href='#method.trim_end' class='fnname'>trim_end</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>trimEnd()</code> method removes whitespace from the end of a string. <code>trimRight()</code> is an alias of this method.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimEnd">MDN documentation</a></p> </div></div><h3 id='impl-47' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-47' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.trim_right' class="method"><code id='trim_right.v'>pub fn <a href='#method.trim_right' class='fnname'>trim_right</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>trimEnd()</code> method removes whitespace from the end of a string. <code>trimRight()</code> is an alias of this method.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimEnd">MDN documentation</a></p> </div></div><h3 id='impl-48' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-48' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.trim_start' class="method"><code id='trim_start.v'>pub fn <a href='#method.trim_start' class='fnname'>trim_start</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>trimStart()</code> method removes whitespace from the beginning of a string. <code>trimLeft()</code> is an alias of this method.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart">MDN documentation</a></p> </div></div><h3 id='impl-49' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-49' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.trim_left' class="method"><code id='trim_left.v'>pub fn <a href='#method.trim_left' class='fnname'>trim_left</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>trimStart()</code> method removes whitespace from the beginning of a string. <code>trimLeft()</code> is an alias of this method.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/trimStart">MDN documentation</a></p> </div></div><h3 id='impl-50' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-50' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.value_of' class="method"><code id='value_of.v'>pub fn <a href='#method.value_of' class='fnname'>value_of</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>valueOf()</code> method returns the primitive value of a <code>String</code> object.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/valueOf">MDN documentation</a></p> </div></div><h3 id='impl-51' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-51' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.raw' class="method"><code id='raw.v'>pub fn <a href='#method.raw' class='fnname'>raw</a>(<br> call_site: &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>, <br> substitutions: &<a class="struct" href="../js_sys/struct.Array.html" title="struct js_sys::Array">Array</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>raw()</code> method is a tag function of template literals, similar to the <code>r</code> prefix in Python or the <code>@</code> prefix in C# for string literals.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw">MDN documentation</a></p> </div></div><h3 id='impl-52' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-52' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.raw_0' class="method"><code id='raw_0.v'>pub fn <a href='#method.raw_0' class='fnname'>raw_0</a>(call_site: &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>raw()</code> method is a tag function of template literals, similar to the <code>r</code> prefix in Python or the <code>@</code> prefix in C# for string literals.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw">MDN documentation</a></p> </div></div><h3 id='impl-53' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-53' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.raw_1' class="method"><code id='raw_1.v'>pub fn <a href='#method.raw_1' class='fnname'>raw_1</a>(<br> call_site: &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>, <br> substitutions_1: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>raw()</code> method is a tag function of template literals, similar to the <code>r</code> prefix in Python or the <code>@</code> prefix in C# for string literals.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw">MDN documentation</a></p> </div></div><h3 id='impl-54' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-54' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.raw_2' class="method"><code id='raw_2.v'>pub fn <a href='#method.raw_2' class='fnname'>raw_2</a>(<br> call_site: &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>, <br> substitutions_1: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_2: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>raw()</code> method is a tag function of template literals, similar to the <code>r</code> prefix in Python or the <code>@</code> prefix in C# for string literals.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw">MDN documentation</a></p> </div></div><h3 id='impl-55' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-55' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.raw_3' class="method"><code id='raw_3.v'>pub fn <a href='#method.raw_3' class='fnname'>raw_3</a>(<br> call_site: &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>, <br> substitutions_1: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_2: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_3: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>raw()</code> method is a tag function of template literals, similar to the <code>r</code> prefix in Python or the <code>@</code> prefix in C# for string literals.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw">MDN documentation</a></p> </div></div><h3 id='impl-56' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-56' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.raw_4' class="method"><code id='raw_4.v'>pub fn <a href='#method.raw_4' class='fnname'>raw_4</a>(<br> call_site: &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>, <br> substitutions_1: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_2: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_3: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_4: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>raw()</code> method is a tag function of template literals, similar to the <code>r</code> prefix in Python or the <code>@</code> prefix in C# for string literals.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw">MDN documentation</a></p> </div></div><h3 id='impl-57' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-57' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.raw_5' class="method"><code id='raw_5.v'>pub fn <a href='#method.raw_5' class='fnname'>raw_5</a>(<br> call_site: &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>, <br> substitutions_1: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_2: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_3: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_4: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_5: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>raw()</code> method is a tag function of template literals, similar to the <code>r</code> prefix in Python or the <code>@</code> prefix in C# for string literals.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw">MDN documentation</a></p> </div></div><h3 id='impl-58' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-58' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.raw_6' class="method"><code id='raw_6.v'>pub fn <a href='#method.raw_6' class='fnname'>raw_6</a>(<br> call_site: &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>, <br> substitutions_1: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_2: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_3: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_4: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_5: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_6: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>raw()</code> method is a tag function of template literals, similar to the <code>r</code> prefix in Python or the <code>@</code> prefix in C# for string literals.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw">MDN documentation</a></p> </div></div><h3 id='impl-59' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-59' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.raw_7' class="method"><code id='raw_7.v'>pub fn <a href='#method.raw_7' class='fnname'>raw_7</a>(<br> call_site: &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>, <br> substitutions_1: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_2: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_3: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_4: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_5: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_6: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> substitutions_7: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>, <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock'><p>The static <code>raw()</code> method is a tag function of template literals, similar to the <code>r</code> prefix in Python or the <code>@</code> prefix in C# for string literals.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw">MDN documentation</a></p> </div></div><h3 id='impl-60' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-60' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4129-4200' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.try_from' class="method"><code id='try_from.v'>pub fn <a href='#method.try_from' class='fnname'>try_from</a>(val: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#4136-4138' title='goto source code'>[src]</a></h4><div class='stability'><div class='stab deprecated'><span class='emoji'>👎</span> Deprecated: <p>recommended to use dyn_ref instead which is now equivalent</p> </div></div><div class='docblock'><p>Returns the <code>JsString</code> value of this JS value if it's an instance of a string.</p> <p>If this JS value is not an instance of a string then this returns <code>None</code>.</p> </div><h4 id='method.is_valid_utf16' class="method"><code id='is_valid_utf16.v'>pub fn <a href='#method.is_valid_utf16' class='fnname'>is_valid_utf16</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4156-4158' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns whether this string is a valid UTF-16 string.</p> <p>This is useful for learning whether <code>String::from(..)</code> will return a lossless representation of the JS string. If this string contains unpaired surrogates then <code>String::from</code> will succeed but it will be a lossy representation of the JS string because unpaired surrogates will become replacement characters.</p> <p>If this function returns <code>false</code> then to get a lossless representation of the string you'll need to manually use the <code>iter</code> method (or the <code>char_code_at</code> accessor) to view the raw character codes.</p> <p>For more information, see the documentation on <a href="https://rustwasm.github.io/docs/wasm-bindgen/reference/types/str.html">JS strings vs Rust strings</a></p> </div><h4 id='method.iter' class="method"><code id='iter.v'>pub fn <a href='#method.iter' class='fnname'>iter</a><'a>(<br> &'a self<br>) -> impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/exact_size/trait.ExactSizeIterator.html" title="trait core::iter::traits::exact_size::ExactSizeIterator">ExactSizeIterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html" title="trait core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>> + 'a</code><a class='srclink' href='../src/js_sys/lib.rs.html#4165-4169' title='goto source code'>[src]</a></h4><div class='docblock'><p>Returns an iterator over the <code>u16</code> character codes that make up this JS string.</p> <p>This method will call <code>char_code_at</code> for each code in this JS string, returning an iterator of the codes in sequence.</p> </div><h4 id='method.as_char' class="method"><code id='as_char.v'>pub fn <a href='#method.as_char' class='fnname'>as_char</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>></code><a class='srclink' href='../src/js_sys/lib.rs.html#4181-4199' title='goto source code'>[src]</a></h4><div class='docblock'><p>If this string consists of a single Unicode code point, then this method converts it into a Rust <code>char</code> without doing any allocations.</p> <p>If this JS value is not a valid UTF-8 or consists of more than a single codepoint, then this returns <code>None</code>.</p> <p>Note that a single Unicode code point might be represented as more than one code unit on the JavaScript side. For example, a JavaScript string <code>"\uD801\uDC37"</code> is actually a single Unicode code point U+10437 which corresponds to a character '𐐷'.</p> </div></div><h2 id='deref-methods' class='small-section-header'>Methods from <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = <a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>><a href='#deref-methods' class='anchor'></a></h2><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'><h4 id='method.constructor' class="method"><code id='constructor.v'>pub fn <a href='#method.constructor' class='fnname'>constructor</a>(&self) -> <a class="struct" href="../js_sys/struct.Function.html" title="struct js_sys::Function">Function</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#2417' title='goto source code'>[src]</a></h4><div class='docblock'><p>The constructor property returns a reference to the <code>Object</code> constructor function that created the instance object.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor">MDN documentation</a></p> </div></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'><h4 id='method.has_own_property' class="method"><code id='has_own_property.v'>pub fn <a href='#method.has_own_property' class='fnname'>has_own_property</a>(&self, property: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#2417' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>hasOwnProperty()</code> method returns a boolean indicating whether the object has the specified property as its own property (as opposed to inheriting it).</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty">MDN documentation</a></p> </div></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'><h4 id='method.is_prototype_of' class="method"><code id='is_prototype_of.v'>pub fn <a href='#method.is_prototype_of' class='fnname'>is_prototype_of</a>(&self, value: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#2417' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>isPrototypeOf()</code> method checks if an object exists in another object's prototype chain.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/isPrototypeOf">MDN documentation</a></p> </div></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'><h4 id='method.property_is_enumerable' class="method"><code id='property_is_enumerable.v'>pub fn <a href='#method.property_is_enumerable' class='fnname'>property_is_enumerable</a>(&self, property: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#2417' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>propertyIsEnumerable()</code> method returns a Boolean indicating whether the specified property is enumerable.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/propertyIsEnumerable">MDN documentation</a></p> </div></div><div class='impl-items'></div><div class='impl-items'></div><div class='impl-items'><h4 id='method.to_locale_string' class="method"><code id='to_locale_string.v'>pub fn <a href='#method.to_locale_string' class='fnname'>to_locale_string</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#2417' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>toLocaleString()</code> method returns a string representing the object. This method is meant to be overridden by derived objects for locale-specific purposes.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toLocaleString">MDN documentation</a></p> </div></div><div class='impl-items'><h4 id='method.to_string-1' class="method"><code id='to_string.v-1'>pub fn <a href='#method.to_string-1' class='fnname'>to_string</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#2417' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>toString()</code> method returns a string representing the object.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/toString">MDN documentation</a></p> </div></div><div class='impl-items'><h4 id='method.value_of-1' class="method"><code id='value_of.v-1'>pub fn <a href='#method.value_of-1' class='fnname'>value_of</a>(&self) -> <a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#2417' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>valueOf()</code> method returns the primitive value of the specified object.</p> <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/valueOf">MDN documentation</a></p> </div></div><div class='impl-items'></div><div class='impl-items'></div><h2 id='trait-implementations' class='small-section-header'>Trait Implementations<a href='#trait-implementations' class='anchor'></a></h2><div id='trait-implementations-list'><h3 id='impl-AsRef%3CJsString%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-AsRef%3CJsString%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_ref-1' class="method hidden"><code id='as_ref.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&self) -> &<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-AsRef%3CJsValue%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-AsRef%3CJsValue%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_ref' class="method hidden"><code id='as_ref.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&self) -> &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-AsRef%3CObject%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-AsRef%3CObject%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_ref-2' class="method hidden"><code id='as_ref.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&self) -> &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-Clone' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3665' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3665' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p> </div><h4 id='method.clone_from' class="method hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p> </div></div><h3 id='impl-Debug' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4257-4261' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4258-4260' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p> </div></div><h3 id='impl-Deref' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-Deref' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Target' class="type"><code id='Target.t'>type <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target' class="type">Target</a> = <a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code></h4><div class='docblock'><p>The resulting type after dereferencing.</p> </div><h4 id='method.deref' class="method hidden"><code id='deref.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#tymethod.deref' class='fnname'>deref</a>(&self) -> &<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Dereferences the value.</p> </div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3665' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-From%3C%26%27a%20JsString%3E' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-From%3C%26%27a%20JsString%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4245-4249' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-6' class="method hidden"><code id='from.v-6'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(s: &'a <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>) -> Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#4246-4248' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-From%3C%26%27a%20str%3E' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-From%3C%26%27a%20str%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4226-4230' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-3' class="method hidden"><code id='from.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(s: &'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#4227-4229' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-From%3CJsString%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>> for <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a></code><a href='#impl-From%3CJsString%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(obj: <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>) -> <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-From%3CJsString%3E-1' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>> for <a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code><a href='#impl-From%3CJsString%3E-1' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-2' class="method hidden"><code id='from.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(obj: <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>) -> <a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-From%3CJsString%3E-2' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-From%3CJsString%3E-2' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4251-4255' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-7' class="method hidden"><code id='from.v-7'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(s: <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>) -> Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#4252-4254' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-From%3CJsValue%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-From%3CJsValue%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(obj: <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-From%3CString%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-From%3CString%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4232-4236' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-4' class="method hidden"><code id='from.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(s: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#4233-4235' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-From%3Cchar%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-From%3Cchar%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4238-4243' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-5' class="method hidden"><code id='from.v-5'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(c: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>) -> Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#4240-4242' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-FromWasmAbi' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html" title="trait wasm_bindgen::convert::traits::FromWasmAbi">FromWasmAbi</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-FromWasmAbi' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Abi-1' class="type"><code id='Abi.t-1'>type <a href='../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi' class="type">Abi</a> = <<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a> as <a class="trait" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html" title="trait wasm_bindgen::convert::traits::FromWasmAbi">FromWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::FromWasmAbi::Abi">Abi</a></code></h4><div class='docblock'><p>The wasm ABI type that this converts from when coming back out from the ABI boundary. <a href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi">Read more</a></p> </div><h4 id='method.from_abi' class="method hidden"><code id='from_abi.v'>unsafe fn <a href='../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#tymethod.from_abi' class='fnname'>from_abi</a>(js: Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::FromWasmAbi::Abi">Abi</a>) -> Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Recover a <code>Self</code> from <code>Self::Abi</code>. <a href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#tymethod.from_abi">Read more</a></p> </div></div><h3 id='impl-IntoWasmAbi' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-IntoWasmAbi' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Abi-2' class="type"><code id='Abi.t-2'>type <a href='../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi' class="type">Abi</a> = <<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a> as <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code></h4><div class='docblock'><p>The wasm ABI type that this converts into when crossing the ABI boundary. <a href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi">Read more</a></p> </div><h4 id='method.into_abi' class="method hidden"><code id='into_abi.v'>fn <a href='../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#tymethod.into_abi' class='fnname'>into_abi</a>(self) -> Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert <code>self</code> into <code>Self::Abi</code> so that it can be sent across the wasm ABI boundary. <a href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#tymethod.into_abi">Read more</a></p> </div></div><h3 id='impl-IntoWasmAbi-1' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a> for &'a <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-IntoWasmAbi-1' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Abi-3' class="type"><code id='Abi.t-3'>type <a href='../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi' class="type">Abi</a> = <&'a <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a> as <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code></h4><div class='docblock'><p>The wasm ABI type that this converts into when crossing the ABI boundary. <a href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi">Read more</a></p> </div><h4 id='method.into_abi-1' class="method hidden"><code id='into_abi.v-1'>fn <a href='../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#tymethod.into_abi' class='fnname'>into_abi</a>(self) -> Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convert <code>self</code> into <code>Self::Abi</code> so that it can be sent across the wasm ABI boundary. <a href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#tymethod.into_abi">Read more</a></p> </div></div><h3 id='impl-JsCast' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-JsCast' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.instanceof' class="method hidden"><code id='instanceof.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#tymethod.instanceof' class='fnname'>instanceof</a>(val: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a dynamic <code>instanceof</code> check to see whether the <code>JsValue</code> provided is an instance of this type. <a href="../wasm_bindgen/cast/trait.JsCast.html#tymethod.instanceof">Read more</a></p> </div><h4 id='method.is_type_of' class="method hidden"><code id='is_type_of.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.is_type_of' class='fnname'>is_type_of</a>(val: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a dynamic check to see whether the <code>JsValue</code> provided is a value of this type. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.is_type_of">Read more</a></p> </div><h4 id='method.unchecked_from_js' class="method hidden"><code id='unchecked_from_js.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#tymethod.unchecked_from_js' class='fnname'>unchecked_from_js</a>(val: <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a zero-cost unchecked conversion from a <code>JsValue</code> into an instance of <code>Self</code> <a href="../wasm_bindgen/cast/trait.JsCast.html#tymethod.unchecked_from_js">Read more</a></p> </div><h4 id='method.unchecked_from_js_ref' class="method hidden"><code id='unchecked_from_js_ref.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#tymethod.unchecked_from_js_ref' class='fnname'>unchecked_from_js_ref</a>(val: &<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a zero-cost unchecked conversion from a <code>&JsValue</code> into an instance of <code>&Self</code>. <a href="../wasm_bindgen/cast/trait.JsCast.html#tymethod.unchecked_from_js_ref">Read more</a></p> </div><h4 id='method.has_type' class="method hidden"><code id='has_type.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.has_type' class='fnname'>has_type</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#30-35' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Test whether this JS value has a type <code>T</code>. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.has_type">Read more</a></p> </div><h4 id='method.dyn_into' class="method hidden"><code id='dyn_into.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.dyn_into' class='fnname'>dyn_into</a><T>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, Self> <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#43-52' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a dynamic cast (checked at runtime) of this value into the target type <code>T</code>. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.dyn_into">Read more</a></p> </div><h4 id='method.dyn_ref' class="method hidden"><code id='dyn_ref.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.dyn_ref' class='fnname'>dyn_ref</a><T>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T> <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#60-69' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a dynamic cast (checked at runtime) of this value into the target type <code>T</code>. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.dyn_ref">Read more</a></p> </div><h4 id='method.unchecked_into' class="method hidden"><code id='unchecked_into.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.unchecked_into' class='fnname'>unchecked_into</a><T>(self) -> T <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#78-83' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a zero-cost unchecked cast into the specified type. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.unchecked_into">Read more</a></p> </div><h4 id='method.unchecked_ref' class="method hidden"><code id='unchecked_ref.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.unchecked_ref' class='fnname'>unchecked_ref</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#96-101' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a zero-cost unchecked cast into a reference to the specified type. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.unchecked_ref">Read more</a></p> </div><h4 id='method.is_instance_of' class="method hidden"><code id='is_instance_of.v'>fn <a href='../wasm_bindgen/cast/trait.JsCast.html#method.is_instance_of' class='fnname'>is_instance_of</a><T>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>, </span></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#112-117' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Test whether this JS value is an instance of the type <code>T</code>. <a href="../wasm_bindgen/cast/trait.JsCast.html#method.is_instance_of">Read more</a></p> </div></div><h3 id='impl-OptionFromWasmAbi' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/convert/traits/trait.OptionFromWasmAbi.html" title="trait wasm_bindgen::convert::traits::OptionFromWasmAbi">OptionFromWasmAbi</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-OptionFromWasmAbi' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.is_none' class="method hidden"><code id='is_none.v'>fn <a href='../wasm_bindgen/convert/traits/trait.OptionFromWasmAbi.html#tymethod.is_none' class='fnname'>is_none</a>(abi: &Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::FromWasmAbi::Abi">Abi</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Tests whether the argument is a "none" instance. If so it will be deserialized as <code>None</code>, and otherwise it will be passed to <code>FromWasmAbi</code>. <a href="../wasm_bindgen/convert/traits/trait.OptionFromWasmAbi.html#tymethod.is_none">Read more</a></p> </div></div><h3 id='impl-OptionIntoWasmAbi' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::OptionIntoWasmAbi">OptionIntoWasmAbi</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-OptionIntoWasmAbi' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.none' class="method hidden"><code id='none.v'>fn <a href='../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html#tymethod.none' class='fnname'>none</a>() -> Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns an ABI instance indicating "none", which JS will interpret as the <code>None</code> branch of this option. <a href="../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html#tymethod.none">Read more</a></p> </div></div><h3 id='impl-OptionIntoWasmAbi-1' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::OptionIntoWasmAbi">OptionIntoWasmAbi</a> for &'a <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-OptionIntoWasmAbi-1' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.none-1' class="method hidden"><code id='none.v-1'>fn <a href='../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html#tymethod.none' class='fnname'>none</a>() -> Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns an ABI instance indicating "none", which JS will interpret as the <code>None</code> branch of this option. <a href="../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html#tymethod.none">Read more</a></p> </div></div><h3 id='impl-PartialEq%3C%26%27a%20String%3E' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-PartialEq%3C%26%27a%20String%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4220-4224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq-4' class="method hidden"><code id='eq.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &&'a <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4221-4223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p> </div><h4 id='method.ne-4' class="method hidden"><code id='ne.v-4'><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#216-218' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p> </div></div><h3 id='impl-PartialEq%3C%26%27a%20str%3E' class='impl'><code class='in-band'>impl<'a> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-PartialEq%3C%26%27a%20str%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4208-4212' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq-2' class="method hidden"><code id='eq.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &&'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4209-4211' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p> </div><h4 id='method.ne-2' class="method hidden"><code id='ne.v-2'><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#216-218' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p> </div></div><h3 id='impl-PartialEq%3CJsString%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-PartialEq%3CJsString%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3665' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code id='eq.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3665' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p> </div><h4 id='method.ne' class="method hidden"><code id='ne.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3665' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p> </div></div><h3 id='impl-PartialEq%3CString%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-PartialEq%3CString%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4214-4218' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq-3' class="method hidden"><code id='eq.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4215-4217' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p> </div><h4 id='method.ne-3' class="method hidden"><code id='ne.v-3'><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#216-218' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p> </div></div><h3 id='impl-PartialEq%3Cstr%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-PartialEq%3Cstr%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4202-4206' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq-1' class="method hidden"><code id='eq.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4203-4205' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p> </div><h4 id='method.ne-1' class="method hidden"><code id='ne.v-1'><span class="docblock attributes">#[must_use]</span>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#216-218' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p> </div></div><h3 id='impl-RefFromWasmAbi' class='impl'><code class='in-band'>impl <a class="trait" href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html" title="trait wasm_bindgen::convert::traits::RefFromWasmAbi">RefFromWasmAbi</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-RefFromWasmAbi' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Abi' class="type"><code id='Abi.t'>type <a href='../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Abi' class="type">Abi</a> = <<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a> as <a class="trait" href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html" title="trait wasm_bindgen::convert::traits::RefFromWasmAbi">RefFromWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::RefFromWasmAbi::Abi">Abi</a></code></h4><div class='docblock'><p>The wasm ABI type references to <code>Self</code> are recovered from.</p> </div><h4 id='associatedtype.Anchor' class="type"><code id='Anchor.t'>type <a href='../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Anchor' class="type">Anchor</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/mem/manually_drop/struct.ManuallyDrop.html" title="struct core::mem::manually_drop::ManuallyDrop">ManuallyDrop</a><<a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a>></code></h4><div class='docblock'><p>The type that holds the reference to <code>Self</code> for the duration of the invocation of the function that has an <code>&Self</code> parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. <a href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Anchor">Read more</a></p> </div><h4 id='method.ref_from_abi' class="method hidden"><code id='ref_from_abi.v'>unsafe fn <a href='../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#tymethod.ref_from_abi' class='fnname'>ref_from_abi</a>(js: Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::RefFromWasmAbi::Abi">Abi</a>) -> Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#associatedtype.Anchor" title="type wasm_bindgen::convert::traits::RefFromWasmAbi::Anchor">Anchor</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Recover a <code>Self::Anchor</code> from <code>Self::Abi</code>. <a href="../wasm_bindgen/convert/traits/trait.RefFromWasmAbi.html#tymethod.ref_from_abi">Read more</a></p> </div></div><h3 id='impl-StructuralEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-StructuralEq' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3665' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-StructuralPartialEq' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-StructuralPartialEq' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3665' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-WasmDescribe' class='impl'><code class='in-band'>impl WasmDescribe for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-WasmDescribe' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.describe' class="method hidden"><code id='describe.v'>fn <a href='#method.describe' class='fnname'>describe</a>()</code><a class='srclink' href='../src/js_sys/lib.rs.html#3662' title='goto source code'>[src]</a></h4></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-RefUnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-RefUnwindSafe' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Send' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-UnwindSafe' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../js_sys/struct.JsString.html" title="struct js_sys::JsString">JsString</a></code><a href='#impl-UnwindSafe' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-Any' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#108-112' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#109-111' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p> </div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-217' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-216' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p> </div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#220-224' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221-223' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p> </div></div><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#565-569' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-8' class="method hidden"><code id='from.v-8'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#566-568' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#554-561' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -> U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#558-560' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-ReturnWasmAbi' class='impl'><code class='in-band'>impl<T> <a class="trait" href="../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html" title="trait wasm_bindgen::convert::traits::ReturnWasmAbi">ReturnWasmAbi</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a>, </span></code><a href='#impl-ReturnWasmAbi' class='anchor'></a><a class='srclink' href='../src/wasm_bindgen/convert/traits.rs.html#122-129' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Abi-4' class="type"><code id='Abi.t-4'>type <a href='../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html#associatedtype.Abi' class="type">Abi</a> = <T as <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::IntoWasmAbi::Abi">Abi</a></code></h4><div class='docblock'><p>Same as <code>IntoWasmAbi::Abi</code></p> </div><h4 id='method.return_abi' class="method hidden"><code id='return_abi.v'>fn <a href='../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html#tymethod.return_abi' class='fnname'>return_abi</a>(self) -> <T as <a class="trait" href="../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html" title="trait wasm_bindgen::convert::traits::ReturnWasmAbi">ReturnWasmAbi</a>>::<a class="type" href="../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::ReturnWasmAbi::Abi">Abi</a></code><a class='srclink' href='../src/wasm_bindgen/convert/traits.rs.html#126-128' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Same as <code>IntoWasmAbi::into_abi</code>, except that it may throw and never return in the case of <code>Err</code>. <a href="../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html#tymethod.return_abi">Read more</a></p> </div></div><h3 id='impl-ToOwned' class='impl'><code class='in-band'>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href='#impl-ToOwned' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Owned' class="type"><code id='Owned.t'>type <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned' class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p> </div><h4 id='method.to_owned' class="method hidden"><code id='to_owned.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned' class='fnname'>to_owned</a>(&self) -> T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p> </div><h4 id='method.clone_into' class="method hidden"><code id='clone_into.v'>fn <a href='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into' class='fnname'>clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><details><summary><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p> </details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p> </div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#602-611' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p> </div><h4 id='method.try_from-1' class="method hidden"><code id='try_from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#608-610' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588-597' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p> </div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#594-596' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p> </div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../";window.currentCrate = "js_sys";</script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>