wasm-bindgen/api/js_sys/struct.Int16Array.html

150 lines
83 KiB
HTML
Raw Normal View History

<!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 `Int16Array` struct in crate `js_sys`."><meta name="keywords" content="rust, rustlang, rust-lang, Int16Array"><title>js_sys::Int16Array - 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">&#9776;</div><a href='../js_sys/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Struct Int16Array</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.buffer">buffer</a><a href="#method.byte_length">byte_length</a><a href="#method.byte_offset">byte_offset</a><a href="#method.copy_to">copy_to</a><a href="#method.fill">fill</a><a href="#method.for_each">for_each</a><a href="#method.get_index">get_index</a><a href="#method.length">length</a><a href="#method.new">new</a><a href="#method.new_with_byte_offset">new_with_byte_offset</a><a href="#method.new_with_byte_offset_and_length">new_with_byte_offset_and_length</a><a href="#method.new_with_length">new_with_length</a><a href="#method.set">set</a><a href="#method.set_index">set_index</a><a href="#method.slice">slice</a><a href="#method.subarray">subarray</a><a href="#method.to_vec">to_vec</a><a href="#method.view">view</a><a href="#method.view_mut_raw">view_mut_raw</a></div><a class="sidebar-title" href="#deref-methods">Methods from Deref&lt;Target=Object&gt;</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">to_string</a><a href="#method.value_of">value_of</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-AsRef%3CInt16Array%3E">AsRef&lt;Int16Array&gt;</a><a href="#impl-AsRef%3CJsValue%3E">AsRef&lt;JsValue&gt;</a><a href="#impl-AsRef%3CObject%3E">AsRef&lt;Object&gt;</a><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Deref">Deref</a><a href="#impl-From%3C%26%27a%20%5Bi16%5D%3E">From&lt;&amp;&#39;a [i16]&gt;</a><a href="#impl-From%3CInt16Array%3E">From&lt;Int16Array&gt;</a><a href="#impl-From%3CJsValue%3E">From&lt;JsValue&gt;</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-RefFromWasmAbi">RefFromWasmAbi</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&lt;T&gt;</a><a h
<code>Int16Array()</code>
constructor creates an array of unsigned 8-bit integers.</p>
<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array">MDN documentation</a></p>
</div></div><h3 id='impl-1' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new_with_length' class="method"><code id='new_with_length.v'>pub fn <a href='#method.new_with_length' class='fnname'>new_with_length</a>(length: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>An
<code>Int16Array()</code>
which creates an array with an internal buffer large
enough for <code>length</code> elements.</p>
<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array">MDN documentation</a></p>
</div></div><h3 id='impl-2' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-2' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new_with_byte_offset' class="method"><code id='new_with_byte_offset.v'>pub fn <a href='#method.new_with_byte_offset' class='fnname'>new_with_byte_offset</a>(buffer: &amp;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>, byte_offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>An
<code>Int16Array()</code>
which creates an array with the given buffer but is a
view starting at <code>byte_offset</code>.</p>
<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array">MDN documentation</a></p>
</div></div><h3 id='impl-3' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-3' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new_with_byte_offset_and_length' class="method"><code id='new_with_byte_offset_and_length.v'>pub fn <a href='#method.new_with_byte_offset_and_length' class='fnname'>new_with_byte_offset_and_length</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;buffer: &amp;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;byte_offset: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;length: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>An
<code>Int16Array()</code>
which creates an array with the given buffer but is a
view starting at <code>byte_offset</code> for <code>length</code> elements.</p>
<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array">MDN documentation</a></p>
</div></div><h3 id='impl-4' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-4' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fill' class="method"><code id='fill.v'>pub fn <a href='#method.fill' class='fnname'>fill</a>(&amp;self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>, 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>) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>fill()</code> method fills all the elements of an array from a start index
to an end index with a static value. The end index is not included.</p>
<p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/fill">MDN documentation</a></p>
</div></div><h3 id='impl-5' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-5' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.buffer' class="method"><code id='buffer.v'>pub fn <a href='#method.buffer' class='fnname'>buffer</a>(&amp;self) -&gt; <a class="struct" href="../js_sys/struct.ArrayBuffer.html" title="struct js_sys::ArrayBuffer">ArrayBuffer</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>The buffer accessor property represents the <code>ArrayBuffer</code> referenced
by a <code>TypedArray</code> at construction time.</p>
</div></div><h3 id='impl-6' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-6' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.subarray' class="method"><code id='subarray.v'>pub fn <a href='#method.subarray' class='fnname'>subarray</a>(&amp;self, begin: <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>) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>subarray()</code> method returns a new <code>TypedArray</code> on the same
<code>ArrayBuffer</code> store and with the same element types as for this
<code>TypedArray</code> object.</p>
</div></div><h3 id='impl-7' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-7' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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>(&amp;self, begin: <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>) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>slice()</code> method returns a shallow copy of a portion of a typed
array into a new typed array object. This method has the same algorithm
as <code>Array.prototype.slice()</code>.</p>
</div></div><h3 id='impl-8' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-8' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.for_each' class="method"><code id='for_each.v'>pub fn <a href='#method.for_each' class='fnname'>for_each</a>(&amp;self, callback: &amp;mut dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a>))</code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>forEach()</code> method executes a provided function once per array
element. This method has the same algorithm as
<code>Array.prototype.forEach()</code>. <code>TypedArray</code> is one of the typed array
types here.</p>
</div></div><h3 id='impl-9' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-9' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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>(&amp;self) -&gt; <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#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>The length accessor property represents the length (in elements) of a
typed array.</p>
</div></div><h3 id='impl-10' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-10' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.byte_length' class="method"><code id='byte_length.v'>pub fn <a href='#method.byte_length' class='fnname'>byte_length</a>(&amp;self) -&gt; <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#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>The byteLength accessor property represents the length (in bytes) of a
typed array.</p>
</div></div><h3 id='impl-11' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-11' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.byte_offset' class="method"><code id='byte_offset.v'>pub fn <a href='#method.byte_offset' class='fnname'>byte_offset</a>(&amp;self) -&gt; <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#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>The byteOffset accessor property represents the offset (in bytes) of a
typed array from the start of its <code>ArrayBuffer</code>.</p>
</div></div><h3 id='impl-12' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-12' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set' class="method"><code id='set.v'>pub fn <a href='#method.set' class='fnname'>set</a>(&amp;self, src: &amp;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>, offset: <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#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>The <code>set()</code> method stores multiple values in the typed array, reading
input values from a specified array.</p>
</div></div><h3 id='impl-13' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-13' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.get_index' class="method"><code id='get_index.v'>pub fn <a href='#method.get_index' class='fnname'>get_index</a>(&amp;self, idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>Gets the value at <code>idx</code>, equivalent to the javascript <code>my_var = arr[idx]</code>.</p>
</div></div><h3 id='impl-14' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-14' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.set_index' class="method"><code id='set_index.v'>pub fn <a href='#method.set_index' class='fnname'>set_index</a>(&amp;self, idx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>)</code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock'><p>Sets the value at <code>idx</code>, equivalent to the javascript <code>arr[idx] = value</code>.</p>
</div></div><h3 id='impl-15' class='impl'><code class='in-band'>impl <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-15' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4902-4987' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.view' class="method"><code id='view.v'>pub unsafe fn <a href='#method.view' class='fnname'>view</a>(rust: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4922-4930' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a JS typed array which is a view into wasm's linear
memory at the slice specified.</p>
<p>This function returns a new typed array which is a view into
wasm's memory. This view does not copy the underlying data.</p>
<h1 id="unsafety" class="section-header"><a href="#unsafety">Unsafety</a></h1>
<p>Views into WebAssembly memory are only valid so long as the
backing buffer isn't resized in JS. Once this function is called
any future calls to <code>Box::new</code> (or malloc of any form) may cause
the returned value here to be invalidated. Use with caution!</p>
<p>Additionally the returned object can be safely mutated but the
input slice isn't guaranteed to be mutable.</p>
<p>Finally, the returned object is disconnected from the input
slice's lifetime, so there's no guarantee that the data is read
at the right time.</p>
</div><h4 id='method.view_mut_raw' class="method"><code id='view_mut_raw.v'>pub unsafe fn <a href='#method.view_mut_raw' class='fnname'>view_mut_raw</a>(ptr: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>, length: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4947-4955' title='goto source code'>[src]</a></h4><div class='docblock'><p>Creates a JS typed array which is a view into wasm's linear
memory at the specified pointer with specified length.</p>
<p>This function returns a new typed array which is a view into
wasm's memory. This view does not copy the underlying data.</p>
<h1 id="unsafety-1" class="section-header"><a href="#unsafety-1">Unsafety</a></h1>
<p>Views into WebAssembly memory are only valid so long as the
backing buffer isn't resized in JS. Once this function is called
any future calls to <code>Box::new</code> (or malloc of any form) may cause
the returned value here to be invalidated. Use with caution!</p>
<p>Additionally the returned object can be safely mutated,
the changes are guranteed to be reflected in the input array.</p>
</div><h4 id='method.copy_to' class="method"><code id='copy_to.v'>pub fn <a href='#method.copy_to' class='fnname'>copy_to</a>(&amp;self, dst: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>)</code><a class='srclink' href='../src/js_sys/lib.rs.html#4976-4979' title='goto source code'>[src]</a></h4><div class='docblock'><p>Copy the contents of this JS typed array into the destination
Rust slice.</p>
<p>This function will efficiently copy the memory from a typed
array into this wasm module's own linear memory, initializing
the memory destination provided.</p>
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
<p>This function will panic if this typed array's length is
different than the length of the provided <code>dst</code> array.</p>
</div><h4 id='method.to_vec' class="method"><code id='to_vec.v'>pub fn <a href='#method.to_vec' class='fnname'>to_vec</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>&gt;</code><a class='srclink' href='../src/js_sys/lib.rs.html#4982-4986' title='goto source code'>[src]</a></h4><div class='docblock'><p>Efficiently copies the contents of this JS typed array into a new Vec.</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>&lt;Target = <a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>&gt;<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>(&amp;self) -&gt; <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>(&amp;self, property: &amp;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -&gt; <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>(&amp;self, value: &amp;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -&gt; <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>(&amp;self, property: &amp;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -&gt; <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>(&amp;self) -&gt; <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' class="method"><code id='to_string.v'>pub fn <a href='#method.to_string' class='fnname'>to_string</a>(&amp;self) -&gt; <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' class="method"><code id='value_of.v'>pub fn <a href='#method.value_of' class='fnname'>value_of</a>(&amp;self) -&gt; <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%3CInt16Array%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>&lt;<a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a>&gt; for <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-AsRef%3CInt16Array%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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>(&amp;self) -&gt; &amp;<a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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>&lt;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>&gt; for <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-AsRef%3CJsValue%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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>(&amp;self) -&gt; &amp;<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#4789' 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>&lt;<a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a>&gt; for <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-AsRef%3CObject%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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>(&amp;self) -&gt; &amp;<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#4789' 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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-Clone' class='anchor'></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>(&amp;self) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code></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>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-Debug' class='anchor'></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>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-Deref' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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>(&amp;self) -&gt; &amp;<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#4789' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Dereferences the value.</p>
</div></div><h3 id='impl-From%3C%26%27a%20%5Bi16%5D%3E' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>&gt; for <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-From%3C%26%27a%20%5Bi16%5D%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4989-4995' 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>(slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4991-4994' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CInt16Array%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>&lt;<a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a>&gt; for <a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a></code><a href='#impl-From%3CInt16Array%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a>) -&gt; <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#4789' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CInt16Array%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>&lt;<a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a>&gt; for <a class="struct" href="../js_sys/struct.Object.html" title="struct js_sys::Object">Object</a></code><a href='#impl-From%3CInt16Array%3E-1' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a>) -&gt; <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#4789' 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>&lt;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>&gt; for <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-From%3CJsValue%3E' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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>) -&gt; <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-FromWasmAbi' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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> = &lt;<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>&gt;::<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>) -&gt; Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-IntoWasmAbi' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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> = &lt;<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>&gt;::<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) -&gt; 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#4789' 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&lt;'a&gt; <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a> for &amp;'a <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-IntoWasmAbi-1' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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> = &lt;&amp;'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>&gt;::<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) -&gt; 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#4789' 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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-JsCast' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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: &amp;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -&gt; <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#4789' 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.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>) -&gt; Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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: &amp;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self</code><a class='srclink' href='../src/js_sys/lib.rs.html#4789' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs a zero-cost unchecked conversion from a <code>&amp;JsValue</code> into an instance of <code>&amp;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>&lt;T&gt;(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>,&nbsp;</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>&lt;T&gt;(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>,&nbsp;</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>&lt;T&gt;(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>,&nbsp;</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>&lt;T&gt;(self) -&gt; T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>,&nbsp;</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>&lt;T&gt;(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>,&nbsp;</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>&lt;T&gt;(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../wasm_bindgen/cast/trait.JsCast.html" title="trait wasm_bindgen::cast::JsCast">JsCast</a>,&nbsp;</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><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: &amp;<a class="struct" href="../wasm_bindgen/struct.JsValue.html" title="struct wasm_bindgen::JsValue">JsValue</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class='srclink' href='../src/wasm_bindgen/cast.rs.html#136-138' 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></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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-OptionFromWasmAbi' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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: &amp;Self::<a class="type" href="../wasm_bindgen/convert/traits/trait.FromWasmAbi.html#associatedtype.Abi" title="type wasm_bindgen::convert::traits::FromWasmAbi::Abi">Abi</a>) -&gt; <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#4789' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Tests whether the argument is a &quot;none&quot; 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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-OptionIntoWasmAbi' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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>() -&gt; 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#4789' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns an ABI instance indicating &quot;none&quot;, 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&lt;'a&gt; <a class="trait" href="../wasm_bindgen/convert/traits/trait.OptionIntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::OptionIntoWasmAbi">OptionIntoWasmAbi</a> for &amp;'a <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-OptionIntoWasmAbi-1' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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>() -&gt; 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#4789' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns an ABI instance indicating &quot;none&quot;, 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-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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-RefFromWasmAbi' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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> = &lt;<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>&gt;::<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>&lt;<a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a>&gt;</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>&amp;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>) -&gt; 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#4789' 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-WasmDescribe' class='impl'><code class='in-band'>impl WasmDescribe for <a class="struct" href="../js_sys/struct.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</a></code><a href='#impl-WasmDescribe' class='anchor'></a><a class='srclink' href='../src/js_sys/lib.rs.html#4789' 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#4789' 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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</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.Int16Array.html" title="struct js_sys::Int16Array">Int16Array</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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;self) -&gt; <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>T
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</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>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;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&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; 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-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>(t: T) -&gt; 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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</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) -&gt; 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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a>,&nbsp;</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> = &lt;T as <a class="trait" href="../wasm_bindgen/convert/traits/trait.IntoWasmAbi.html" title="trait wasm_bindgen::convert::traits::IntoWasmAbi">IntoWasmAbi</a>&gt;::<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) -&gt; &lt;T as <a class="trait" href="../wasm_bindgen/convert/traits/trait.ReturnWasmAbi.html" title="trait wasm_bindgen::convert::traits::ReturnWasmAbi">ReturnWasmAbi</a>&gt;::<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&lt;T&gt; <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>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</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>(&amp;self) -&gt; 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>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</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' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<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>&gt;</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&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</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> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<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) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<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>&gt;</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>