Struct wgpu::web_sys::js_sys::wasm_bindgen::JsValue

source ·
pub struct JsValue { /* private fields */ }
Available on webgl or webgpu only.
Expand description

Representation of an object owned by JS.

A JsValue doesn’t actually live in Rust right now but actually in a table owned by the wasm-bindgen generated JS glue code. Eventually the ownership will transfer into wasm directly and this will likely become more efficient, but for now it may be slightly slow.

Implementations§

source§

impl JsValue

source

pub const NULL: JsValue = _

The null JS value constant.

source

pub const UNDEFINED: JsValue = _

The undefined JS value constant.

source

pub const TRUE: JsValue = _

The true JS value constant.

source

pub const FALSE: JsValue = _

The false JS value constant.

source

pub fn from_str(s: &str) -> JsValue

Creates a new JS value which is a string.

The utf-8 string provided is copied to the JS heap and the string will be owned by the JS garbage collector.

source

pub fn from_f64(n: f64) -> JsValue

Creates a new JS value which is a number.

This function creates a JS value representing a number (a heap allocated number) and returns a handle to the JS version of it.

source

pub fn bigint_from_str(s: &str) -> JsValue

Creates a new JS value which is a bigint from a string representing a number.

This function creates a JS value representing a bigint (a heap allocated large integer) and returns a handle to the JS version of it.

source

pub const fn from_bool(b: bool) -> JsValue

Creates a new JS value which is a boolean.

This function creates a JS object representing a boolean (a heap allocated boolean) and returns a handle to the JS version of it.

source

pub const fn undefined() -> JsValue

Creates a new JS value representing undefined.

source

pub const fn null() -> JsValue

Creates a new JS value representing null.

source

pub fn symbol(description: Option<&str>) -> JsValue

Creates a new JS symbol with the optional description specified.

This function will invoke the Symbol constructor in JS and return the JS object corresponding to the symbol created.

source

pub fn as_f64(&self) -> Option<f64>

Returns the f64 value of this JS value if it’s an instance of a number.

If this JS value is not an instance of a number then this returns None.

source

pub fn is_string(&self) -> bool

Tests whether this JS value is a JS string.

source

pub fn as_string(&self) -> Option<String>

Available on crate feature std only.

If this JS value is a string value, this function copies the JS string value into wasm linear memory, encoded as UTF-8, and returns it as a Rust String.

To avoid the copying and re-encoding, consider the JsString::try_from() function from js-sys instead.

If this JS value is not an instance of a string or if it’s not valid utf-8 then this returns None.

§UTF-16 vs UTF-8

JavaScript strings in general are encoded as UTF-16, but Rust strings are encoded as UTF-8. This can cause the Rust string to look a bit different than the JS string sometimes. For more details see the documentation about the str type which contains a few caveats about the encodings.

source

pub fn as_bool(&self) -> Option<bool>

Returns the bool value of this JS value if it’s an instance of a boolean.

If this JS value is not an instance of a boolean then this returns None.

source

pub fn is_null(&self) -> bool

Tests whether this JS value is null

source

pub fn is_undefined(&self) -> bool

Tests whether this JS value is undefined

source

pub fn is_symbol(&self) -> bool

Tests whether the type of this JS value is symbol

source

pub fn is_object(&self) -> bool

Tests whether typeof self == "object" && self !== null.

source

pub fn is_array(&self) -> bool

Tests whether this JS value is an instance of Array.

source

pub fn is_function(&self) -> bool

Tests whether the type of this JS value is function.

source

pub fn is_bigint(&self) -> bool

Tests whether the type of this JS value is bigint.

source

pub fn js_typeof(&self) -> JsValue

Applies the unary typeof JS operator on a JsValue.

MDN documentation

source

pub fn js_in(&self, obj: &JsValue) -> bool

Applies the binary in JS operator on the two JsValues.

MDN documentation

source

pub fn is_truthy(&self) -> bool

Tests whether the value is “truthy”.

source

pub fn is_falsy(&self) -> bool

Tests whether the value is “falsy”.

source

pub fn loose_eq(&self, other: &JsValue) -> bool

Compare two JsValues for equality, using the == operator in JS.

MDN documentation

source

pub fn bit_not(&self) -> JsValue

Applies the unary ~ JS operator on a JsValue.

MDN documentation

source

pub fn unsigned_shr(&self, rhs: &JsValue) -> u32

Applies the binary >>> JS operator on the two JsValues.

MDN documentation

source

pub fn checked_div(&self, rhs: &JsValue) -> JsValue

Applies the binary / JS operator on two JsValues, catching and returning any RangeError thrown.

MDN documentation

source

pub fn pow(&self, rhs: &JsValue) -> JsValue

Applies the binary ** JS operator on the two JsValues.

MDN documentation

source

pub fn lt(&self, other: &JsValue) -> bool

Applies the binary < JS operator on the two JsValues.

MDN documentation

source

pub fn le(&self, other: &JsValue) -> bool

Applies the binary <= JS operator on the two JsValues.

MDN documentation

source

pub fn ge(&self, other: &JsValue) -> bool

Applies the binary >= JS operator on the two JsValues.

MDN documentation

source

pub fn gt(&self, other: &JsValue) -> bool

Applies the binary > JS operator on the two JsValues.

MDN documentation

source

pub fn unchecked_into_f64(&self) -> f64

Applies the unary + JS operator on a JsValue. Can throw.

MDN documentation

Trait Implementations§

source§

impl Add<&JsValue> for JsValue

§

type Output = <&'static JsValue as Add>::Output

The resulting type after applying the + operator.
source§

fn add(self, other: &JsValue) -> <&'static JsValue as Add>::Output

Performs the + operation. Read more
source§

impl<'a> Add<JsValue> for &'a JsValue

§

type Output = <&'static JsValue as Add>::Output

The resulting type after applying the + operator.
source§

fn add(self, other: JsValue) -> <&'static JsValue as Add>::Output

Performs the + operation. Read more
source§

impl Add for &JsValue

source§

fn add(self, rhs: &JsValue) -> <&JsValue as Add>::Output

Applies the binary + JS operator on two JsValues.

MDN documentation

§

type Output = JsValue

The resulting type after applying the + operator.
source§

impl Add for JsValue

§

type Output = <&'static JsValue as Add>::Output

The resulting type after applying the + operator.
source§

fn add(self, other: JsValue) -> <&'static JsValue as Add>::Output

Performs the + operation. Read more
source§

impl AsRef<JsValue> for AngleInstancedArrays

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ArrayBuffer

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for AsyncIterator

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for BigInt

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for BigInt64Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for BigUint64Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Boolean

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl<T> AsRef<JsValue> for Closure<T>
where T: ?Sized,

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Collator

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for CompileError

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for DataView

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Date

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for DateTimeFormat

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Document

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Element

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Error

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for EvalError

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Event

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for EventTarget

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Exception

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ExtBlendMinmax

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ExtColorBufferFloat

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ExtColorBufferHalfFloat

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ExtDisjointTimerQuery

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ExtFragDepth

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ExtSRgb

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ExtShaderTextureLod

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ExtTextureFilterAnisotropic

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Float32Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Float64Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Function

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Generator

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Global

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for HtmlCanvasElement

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for HtmlElement

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for HtmlImageElement

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for HtmlMediaElement

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for HtmlVideoElement

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ImageBitmap

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ImageBitmapRenderingContext

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Instance

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Int16Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Int32Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Int8Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Iterator

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for IteratorNext

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for JsString

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for JsValue

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for LinkError

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Map

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Memory

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Module

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Navigator

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Node

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for NodeList

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Number

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for NumberFormat

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Object

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for OesElementIndexUint

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for OesStandardDerivatives

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for OesTextureFloat

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for OesTextureFloatLinear

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for OesTextureHalfFloat

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for OesTextureHalfFloatLinear

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for OesVertexArrayObject

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for OffscreenCanvas

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for OvrMultiview2

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for PluralRules

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Promise

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Proxy

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for RangeError

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for ReferenceError

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for RegExp

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for RelativeTimeFormat

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for RuntimeError

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Set

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for SharedArrayBuffer

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Symbol

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for SyntaxError

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Table

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Tag

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for TypeError

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Uint16Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Uint32Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Uint8Array

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Uint8ClampedArray

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for UriError

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WeakMap

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WeakSet

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGl2RenderingContext

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlActiveInfo

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlBuffer

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlFramebuffer

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlProgram

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlQuery

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlRenderbuffer

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlRenderingContext

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlSampler

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlShader

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlSync

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlTexture

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlTransformFeedback

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlUniformLocation

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebGlVertexArrayObject

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglColorBufferFloat

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglCompressedTextureAstc

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglCompressedTextureEtc

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglCompressedTextureEtc1

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglCompressedTexturePvrtc

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglCompressedTextureS3tc

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglCompressedTextureS3tcSrgb

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglDebugRendererInfo

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglDebugShaders

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglDepthTexture

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglDrawBuffers

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WebglLoseContext

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for Window

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WorkerGlobalScope

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<JsValue> for WorkerNavigator

source§

fn as_ref(&self) -> &JsValue

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl BitAnd<&JsValue> for JsValue

§

type Output = <&'static JsValue as BitAnd>::Output

The resulting type after applying the & operator.
source§

fn bitand(self, other: &JsValue) -> <&'static JsValue as BitAnd>::Output

Performs the & operation. Read more
source§

impl<'a> BitAnd<JsValue> for &'a JsValue

§

type Output = <&'static JsValue as BitAnd>::Output

The resulting type after applying the & operator.
source§

fn bitand(self, other: JsValue) -> <&'static JsValue as BitAnd>::Output

Performs the & operation. Read more
source§

impl BitAnd for &JsValue

source§

fn bitand(self, rhs: &JsValue) -> <&JsValue as BitAnd>::Output

Applies the binary & JS operator on two JsValues.

MDN documentation

§

type Output = JsValue

The resulting type after applying the & operator.
source§

impl BitAnd for JsValue

§

type Output = <&'static JsValue as BitAnd>::Output

The resulting type after applying the & operator.
source§

fn bitand(self, other: JsValue) -> <&'static JsValue as BitAnd>::Output

Performs the & operation. Read more
source§

impl BitOr<&JsValue> for JsValue

§

type Output = <&'static JsValue as BitOr>::Output

The resulting type after applying the | operator.
source§

fn bitor(self, other: &JsValue) -> <&'static JsValue as BitOr>::Output

Performs the | operation. Read more
source§

impl<'a> BitOr<JsValue> for &'a JsValue

§

type Output = <&'static JsValue as BitOr>::Output

The resulting type after applying the | operator.
source§

fn bitor(self, other: JsValue) -> <&'static JsValue as BitOr>::Output

Performs the | operation. Read more
source§

impl BitOr for &JsValue

source§

fn bitor(self, rhs: &JsValue) -> <&JsValue as BitOr>::Output

Applies the binary | JS operator on two JsValues.

MDN documentation

§

type Output = JsValue

The resulting type after applying the | operator.
source§

impl BitOr for JsValue

§

type Output = <&'static JsValue as BitOr>::Output

The resulting type after applying the | operator.
source§

fn bitor(self, other: JsValue) -> <&'static JsValue as BitOr>::Output

Performs the | operation. Read more
source§

impl BitXor<&JsValue> for JsValue

§

type Output = <&'static JsValue as BitXor>::Output

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: &JsValue) -> <&'static JsValue as BitXor>::Output

Performs the ^ operation. Read more
source§

impl<'a> BitXor<JsValue> for &'a JsValue

§

type Output = <&'static JsValue as BitXor>::Output

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: JsValue) -> <&'static JsValue as BitXor>::Output

Performs the ^ operation. Read more
source§

impl BitXor for &JsValue

source§

fn bitxor(self, rhs: &JsValue) -> <&JsValue as BitXor>::Output

Applies the binary ^ JS operator on two JsValues.

MDN documentation

§

type Output = JsValue

The resulting type after applying the ^ operator.
source§

impl BitXor for JsValue

§

type Output = <&'static JsValue as BitXor>::Output

The resulting type after applying the ^ operator.
source§

fn bitxor(self, other: JsValue) -> <&'static JsValue as BitXor>::Output

Performs the ^ operation. Read more
source§

impl Clone for JsValue

source§

fn clone(&self) -> JsValue

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for JsValue

Available on crate feature std only.
source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for JsValue

source§

fn default() -> JsValue

Returns the “default value” for a type. Read more
source§

impl Div<&JsValue> for JsValue

§

type Output = <&'static JsValue as Div>::Output

The resulting type after applying the / operator.
source§

fn div(self, other: &JsValue) -> <&'static JsValue as Div>::Output

Performs the / operation. Read more
source§

impl<'a> Div<JsValue> for &'a JsValue

§

type Output = <&'static JsValue as Div>::Output

The resulting type after applying the / operator.
source§

fn div(self, other: JsValue) -> <&'static JsValue as Div>::Output

Performs the / operation. Read more
source§

impl Div for &JsValue

source§

fn div(self, rhs: &JsValue) -> <&JsValue as Div>::Output

Applies the binary / JS operator on two JsValues.

MDN documentation

§

type Output = JsValue

The resulting type after applying the / operator.
source§

impl Div for JsValue

§

type Output = <&'static JsValue as Div>::Output

The resulting type after applying the / operator.
source§

fn div(self, other: JsValue) -> <&'static JsValue as Div>::Output

Performs the / operation. Read more
source§

impl Drop for JsValue

source§

fn drop(&mut self)

Executes the destructor for this type. Read more
source§

impl<'a> From<&'a String> for JsValue

Available on crate feature std only.
source§

fn from(s: &'a String) -> JsValue

Converts to this type from the input type.
source§

impl<'a, T> From<&'a T> for JsValue
where T: JsCast,

source§

fn from(s: &'a T) -> JsValue

Converts to this type from the input type.
source§

impl<'a> From<&'a str> for JsValue

source§

fn from(s: &'a str) -> JsValue

Converts to this type from the input type.
source§

impl<T> From<*const T> for JsValue

source§

fn from(s: *const T) -> JsValue

Converts to this type from the input type.
source§

impl<T> From<*mut T> for JsValue

source§

fn from(s: *mut T) -> JsValue

Converts to this type from the input type.
source§

impl From<AngleInstancedArrays> for JsValue

source§

fn from(obj: AngleInstancedArrays) -> JsValue

Converts to this type from the input type.
source§

impl From<Array> for JsValue

source§

fn from(obj: Array) -> JsValue

Converts to this type from the input type.
source§

impl From<ArrayBuffer> for JsValue

source§

fn from(obj: ArrayBuffer) -> JsValue

Converts to this type from the input type.
source§

impl From<AsyncIterator> for JsValue

source§

fn from(obj: AsyncIterator) -> JsValue

Converts to this type from the input type.
source§

impl From<BigInt> for JsValue

source§

fn from(obj: BigInt) -> JsValue

Converts to this type from the input type.
source§

impl From<BigInt64Array> for JsValue

source§

fn from(obj: BigInt64Array) -> JsValue

Converts to this type from the input type.
source§

impl From<BigUint64Array> for JsValue

source§

fn from(obj: BigUint64Array) -> JsValue

Converts to this type from the input type.
source§

impl From<Boolean> for JsValue

source§

fn from(obj: Boolean) -> JsValue

Converts to this type from the input type.
source§

impl From<Collator> for JsValue

source§

fn from(obj: Collator) -> JsValue

Converts to this type from the input type.
source§

impl From<CompileError> for JsValue

source§

fn from(obj: CompileError) -> JsValue

Converts to this type from the input type.
source§

impl From<DataView> for JsValue

source§

fn from(obj: DataView) -> JsValue

Converts to this type from the input type.
source§

impl From<Date> for JsValue

source§

fn from(obj: Date) -> JsValue

Converts to this type from the input type.
source§

impl From<DateTimeFormat> for JsValue

source§

fn from(obj: DateTimeFormat) -> JsValue

Converts to this type from the input type.
source§

impl From<Document> for JsValue

source§

fn from(obj: Document) -> JsValue

Converts to this type from the input type.
source§

impl From<Element> for JsValue

source§

fn from(obj: Element) -> JsValue

Converts to this type from the input type.
source§

impl From<Error> for JsValue

source§

fn from(obj: Error) -> JsValue

Converts to this type from the input type.
source§

impl From<EvalError> for JsValue

source§

fn from(obj: EvalError) -> JsValue

Converts to this type from the input type.
source§

impl From<Event> for JsValue

source§

fn from(obj: Event) -> JsValue

Converts to this type from the input type.
source§

impl From<EventTarget> for JsValue

source§

fn from(obj: EventTarget) -> JsValue

Converts to this type from the input type.
source§

impl From<Exception> for JsValue

source§

fn from(obj: Exception) -> JsValue

Converts to this type from the input type.
source§

impl From<ExtBlendMinmax> for JsValue

source§

fn from(obj: ExtBlendMinmax) -> JsValue

Converts to this type from the input type.
source§

impl From<ExtColorBufferFloat> for JsValue

source§

fn from(obj: ExtColorBufferFloat) -> JsValue

Converts to this type from the input type.
source§

impl From<ExtColorBufferHalfFloat> for JsValue

source§

fn from(obj: ExtColorBufferHalfFloat) -> JsValue

Converts to this type from the input type.
source§

impl From<ExtDisjointTimerQuery> for JsValue

source§

fn from(obj: ExtDisjointTimerQuery) -> JsValue

Converts to this type from the input type.
source§

impl From<ExtFragDepth> for JsValue

source§

fn from(obj: ExtFragDepth) -> JsValue

Converts to this type from the input type.
source§

impl From<ExtSRgb> for JsValue

source§

fn from(obj: ExtSRgb) -> JsValue

Converts to this type from the input type.
source§

impl From<ExtShaderTextureLod> for JsValue

source§

fn from(obj: ExtShaderTextureLod) -> JsValue

Converts to this type from the input type.
source§

impl From<ExtTextureFilterAnisotropic> for JsValue

source§

fn from(obj: ExtTextureFilterAnisotropic) -> JsValue

Converts to this type from the input type.
source§

impl From<Float32Array> for JsValue

source§

fn from(obj: Float32Array) -> JsValue

Converts to this type from the input type.
source§

impl From<Float64Array> for JsValue

source§

fn from(obj: Float64Array) -> JsValue

Converts to this type from the input type.
source§

impl From<Function> for JsValue

source§

fn from(obj: Function) -> JsValue

Converts to this type from the input type.
source§

impl From<Generator> for JsValue

source§

fn from(obj: Generator) -> JsValue

Converts to this type from the input type.
source§

impl From<Global> for JsValue

source§

fn from(obj: Global) -> JsValue

Converts to this type from the input type.
source§

impl From<Global> for JsValue

source§

fn from(obj: Global) -> JsValue

Converts to this type from the input type.
source§

impl From<Global> for JsValue

source§

fn from(obj: Global) -> JsValue

Converts to this type from the input type.
source§

impl From<HtmlCanvasElement> for JsValue

source§

fn from(obj: HtmlCanvasElement) -> JsValue

Converts to this type from the input type.
source§

impl From<HtmlElement> for JsValue

source§

fn from(obj: HtmlElement) -> JsValue

Converts to this type from the input type.
source§

impl From<HtmlImageElement> for JsValue

source§

fn from(obj: HtmlImageElement) -> JsValue

Converts to this type from the input type.
source§

impl From<HtmlMediaElement> for JsValue

source§

fn from(obj: HtmlMediaElement) -> JsValue

Converts to this type from the input type.
source§

impl From<HtmlVideoElement> for JsValue

source§

fn from(obj: HtmlVideoElement) -> JsValue

Converts to this type from the input type.
source§

impl From<ImageBitmap> for JsValue

source§

fn from(obj: ImageBitmap) -> JsValue

Converts to this type from the input type.
source§

impl From<ImageBitmapRenderingContext> for JsValue

source§

fn from(obj: ImageBitmapRenderingContext) -> JsValue

Converts to this type from the input type.
source§

impl From<Instance> for JsValue

source§

fn from(obj: Instance) -> JsValue

Converts to this type from the input type.
source§

impl From<Int16Array> for JsValue

source§

fn from(obj: Int16Array) -> JsValue

Converts to this type from the input type.
source§

impl From<Int32Array> for JsValue

source§

fn from(obj: Int32Array) -> JsValue

Converts to this type from the input type.
source§

impl From<Int8Array> for JsValue

source§

fn from(obj: Int8Array) -> JsValue

Converts to this type from the input type.
source§

impl From<Iterator> for JsValue

source§

fn from(obj: Iterator) -> JsValue

Converts to this type from the input type.
source§

impl From<IteratorNext> for JsValue

source§

fn from(obj: IteratorNext) -> JsValue

Converts to this type from the input type.
source§

impl From<JsError> for JsValue

source§

fn from(error: JsError) -> JsValue

Converts to this type from the input type.
source§

impl From<JsString> for JsValue

source§

fn from(obj: JsString) -> JsValue

Converts to this type from the input type.
source§

impl From<JsValue> for AngleInstancedArrays

source§

fn from(obj: JsValue) -> AngleInstancedArrays

Converts to this type from the input type.
source§

impl From<JsValue> for Array

source§

fn from(obj: JsValue) -> Array

Converts to this type from the input type.
source§

impl From<JsValue> for ArrayBuffer

source§

fn from(obj: JsValue) -> ArrayBuffer

Converts to this type from the input type.
source§

impl From<JsValue> for AsyncIterator

source§

fn from(obj: JsValue) -> AsyncIterator

Converts to this type from the input type.
source§

impl From<JsValue> for BigInt

source§

fn from(obj: JsValue) -> BigInt

Converts to this type from the input type.
source§

impl From<JsValue> for BigInt64Array

source§

fn from(obj: JsValue) -> BigInt64Array

Converts to this type from the input type.
source§

impl From<JsValue> for BigUint64Array

source§

fn from(obj: JsValue) -> BigUint64Array

Converts to this type from the input type.
source§

impl From<JsValue> for Boolean

source§

fn from(obj: JsValue) -> Boolean

Converts to this type from the input type.
source§

impl From<JsValue> for Collator

source§

fn from(obj: JsValue) -> Collator

Converts to this type from the input type.
source§

impl From<JsValue> for CompileError

source§

fn from(obj: JsValue) -> CompileError

Converts to this type from the input type.
source§

impl From<JsValue> for DataView

source§

fn from(obj: JsValue) -> DataView

Converts to this type from the input type.
source§

impl From<JsValue> for Date

source§

fn from(obj: JsValue) -> Date

Converts to this type from the input type.
source§

impl From<JsValue> for DateTimeFormat

source§

fn from(obj: JsValue) -> DateTimeFormat

Converts to this type from the input type.
source§

impl From<JsValue> for Document

source§

fn from(obj: JsValue) -> Document

Converts to this type from the input type.
source§

impl From<JsValue> for Element

source§

fn from(obj: JsValue) -> Element

Converts to this type from the input type.
source§

impl From<JsValue> for Error

source§

fn from(obj: JsValue) -> Error

Converts to this type from the input type.
source§

impl From<JsValue> for EvalError

source§

fn from(obj: JsValue) -> EvalError

Converts to this type from the input type.
source§

impl From<JsValue> for Event

source§

fn from(obj: JsValue) -> Event

Converts to this type from the input type.
source§

impl From<JsValue> for EventTarget

source§

fn from(obj: JsValue) -> EventTarget

Converts to this type from the input type.
source§

impl From<JsValue> for Exception

source§

fn from(obj: JsValue) -> Exception

Converts to this type from the input type.
source§

impl From<JsValue> for ExtBlendMinmax

source§

fn from(obj: JsValue) -> ExtBlendMinmax

Converts to this type from the input type.
source§

impl From<JsValue> for ExtColorBufferFloat

source§

fn from(obj: JsValue) -> ExtColorBufferFloat

Converts to this type from the input type.
source§

impl From<JsValue> for ExtColorBufferHalfFloat

source§

fn from(obj: JsValue) -> ExtColorBufferHalfFloat

Converts to this type from the input type.
source§

impl From<JsValue> for ExtDisjointTimerQuery

source§

fn from(obj: JsValue) -> ExtDisjointTimerQuery

Converts to this type from the input type.
source§

impl From<JsValue> for ExtFragDepth

source§

fn from(obj: JsValue) -> ExtFragDepth

Converts to this type from the input type.
source§

impl From<JsValue> for ExtSRgb

source§

fn from(obj: JsValue) -> ExtSRgb

Converts to this type from the input type.
source§

impl From<JsValue> for ExtShaderTextureLod

source§

fn from(obj: JsValue) -> ExtShaderTextureLod

Converts to this type from the input type.
source§

impl From<JsValue> for ExtTextureFilterAnisotropic

source§

fn from(obj: JsValue) -> ExtTextureFilterAnisotropic

Converts to this type from the input type.
source§

impl From<JsValue> for Float32Array

source§

fn from(obj: JsValue) -> Float32Array

Converts to this type from the input type.
source§

impl From<JsValue> for Float64Array

source§

fn from(obj: JsValue) -> Float64Array

Converts to this type from the input type.
source§

impl From<JsValue> for Function

source§

fn from(obj: JsValue) -> Function

Converts to this type from the input type.
source§

impl From<JsValue> for Generator

source§

fn from(obj: JsValue) -> Generator

Converts to this type from the input type.
source§

impl From<JsValue> for Global

source§

fn from(obj: JsValue) -> Global

Converts to this type from the input type.
source§

impl From<JsValue> for HtmlCanvasElement

source§

fn from(obj: JsValue) -> HtmlCanvasElement

Converts to this type from the input type.
source§

impl From<JsValue> for HtmlElement

source§

fn from(obj: JsValue) -> HtmlElement

Converts to this type from the input type.
source§

impl From<JsValue> for HtmlImageElement

source§

fn from(obj: JsValue) -> HtmlImageElement

Converts to this type from the input type.
source§

impl From<JsValue> for HtmlMediaElement

source§

fn from(obj: JsValue) -> HtmlMediaElement

Converts to this type from the input type.
source§

impl From<JsValue> for HtmlVideoElement

source§

fn from(obj: JsValue) -> HtmlVideoElement

Converts to this type from the input type.
source§

impl From<JsValue> for ImageBitmap

source§

fn from(obj: JsValue) -> ImageBitmap

Converts to this type from the input type.
source§

impl From<JsValue> for ImageBitmapRenderingContext

source§

fn from(obj: JsValue) -> ImageBitmapRenderingContext

Converts to this type from the input type.
source§

impl From<JsValue> for Instance

source§

fn from(obj: JsValue) -> Instance

Converts to this type from the input type.
source§

impl From<JsValue> for Int16Array

source§

fn from(obj: JsValue) -> Int16Array

Converts to this type from the input type.
source§

impl From<JsValue> for Int32Array

source§

fn from(obj: JsValue) -> Int32Array

Converts to this type from the input type.
source§

impl From<JsValue> for Int8Array

source§

fn from(obj: JsValue) -> Int8Array

Converts to this type from the input type.
source§

impl From<JsValue> for Iterator

source§

fn from(obj: JsValue) -> Iterator

Converts to this type from the input type.
source§

impl From<JsValue> for IteratorNext

source§

fn from(obj: JsValue) -> IteratorNext

Converts to this type from the input type.
source§

impl From<JsValue> for JsString

source§

fn from(obj: JsValue) -> JsString

Converts to this type from the input type.
source§

impl From<JsValue> for LinkError

source§

fn from(obj: JsValue) -> LinkError

Converts to this type from the input type.
source§

impl From<JsValue> for Map

source§

fn from(obj: JsValue) -> Map

Converts to this type from the input type.
source§

impl From<JsValue> for Memory

source§

fn from(obj: JsValue) -> Memory

Converts to this type from the input type.
source§

impl From<JsValue> for Module

source§

fn from(obj: JsValue) -> Module

Converts to this type from the input type.
source§

impl From<JsValue> for Navigator

source§

fn from(obj: JsValue) -> Navigator

Converts to this type from the input type.
source§

impl From<JsValue> for Node

source§

fn from(obj: JsValue) -> Node

Converts to this type from the input type.
source§

impl From<JsValue> for NodeList

source§

fn from(obj: JsValue) -> NodeList

Converts to this type from the input type.
source§

impl From<JsValue> for Number

source§

fn from(obj: JsValue) -> Number

Converts to this type from the input type.
source§

impl From<JsValue> for NumberFormat

source§

fn from(obj: JsValue) -> NumberFormat

Converts to this type from the input type.
source§

impl From<JsValue> for Object

source§

fn from(obj: JsValue) -> Object

Converts to this type from the input type.
source§

impl From<JsValue> for OesElementIndexUint

source§

fn from(obj: JsValue) -> OesElementIndexUint

Converts to this type from the input type.
source§

impl From<JsValue> for OesStandardDerivatives

source§

fn from(obj: JsValue) -> OesStandardDerivatives

Converts to this type from the input type.
source§

impl From<JsValue> for OesTextureFloat

source§

fn from(obj: JsValue) -> OesTextureFloat

Converts to this type from the input type.
source§

impl From<JsValue> for OesTextureFloatLinear

source§

fn from(obj: JsValue) -> OesTextureFloatLinear

Converts to this type from the input type.
source§

impl From<JsValue> for OesTextureHalfFloat

source§

fn from(obj: JsValue) -> OesTextureHalfFloat

Converts to this type from the input type.
source§

impl From<JsValue> for OesTextureHalfFloatLinear

source§

fn from(obj: JsValue) -> OesTextureHalfFloatLinear

Converts to this type from the input type.
source§

impl From<JsValue> for OesVertexArrayObject

source§

fn from(obj: JsValue) -> OesVertexArrayObject

Converts to this type from the input type.
source§

impl From<JsValue> for OffscreenCanvas

source§

fn from(obj: JsValue) -> OffscreenCanvas

Converts to this type from the input type.
source§

impl From<JsValue> for OvrMultiview2

source§

fn from(obj: JsValue) -> OvrMultiview2

Converts to this type from the input type.
source§

impl From<JsValue> for PluralRules

source§

fn from(obj: JsValue) -> PluralRules

Converts to this type from the input type.
source§

impl From<JsValue> for Promise

source§

fn from(obj: JsValue) -> Promise

Converts to this type from the input type.
source§

impl From<JsValue> for Proxy

source§

fn from(obj: JsValue) -> Proxy

Converts to this type from the input type.
source§

impl From<JsValue> for RangeError

source§

fn from(obj: JsValue) -> RangeError

Converts to this type from the input type.
source§

impl From<JsValue> for ReferenceError

source§

fn from(obj: JsValue) -> ReferenceError

Converts to this type from the input type.
source§

impl From<JsValue> for RegExp

source§

fn from(obj: JsValue) -> RegExp

Converts to this type from the input type.
source§

impl From<JsValue> for RelativeTimeFormat

source§

fn from(obj: JsValue) -> RelativeTimeFormat

Converts to this type from the input type.
source§

impl From<JsValue> for RuntimeError

source§

fn from(obj: JsValue) -> RuntimeError

Converts to this type from the input type.
source§

impl From<JsValue> for Set

source§

fn from(obj: JsValue) -> Set

Converts to this type from the input type.
source§

impl From<JsValue> for SharedArrayBuffer

source§

fn from(obj: JsValue) -> SharedArrayBuffer

Converts to this type from the input type.
source§

impl From<JsValue> for Symbol

source§

fn from(obj: JsValue) -> Symbol

Converts to this type from the input type.
source§

impl From<JsValue> for SyntaxError

source§

fn from(obj: JsValue) -> SyntaxError

Converts to this type from the input type.
source§

impl From<JsValue> for Table

source§

fn from(obj: JsValue) -> Table

Converts to this type from the input type.
source§

impl From<JsValue> for Tag

source§

fn from(obj: JsValue) -> Tag

Converts to this type from the input type.
source§

impl From<JsValue> for TypeError

source§

fn from(obj: JsValue) -> TypeError

Converts to this type from the input type.
source§

impl From<JsValue> for Uint16Array

source§

fn from(obj: JsValue) -> Uint16Array

Converts to this type from the input type.
source§

impl From<JsValue> for Uint32Array

source§

fn from(obj: JsValue) -> Uint32Array

Converts to this type from the input type.
source§

impl From<JsValue> for Uint8Array

source§

fn from(obj: JsValue) -> Uint8Array

Converts to this type from the input type.
source§

impl From<JsValue> for Uint8ClampedArray

source§

fn from(obj: JsValue) -> Uint8ClampedArray

Converts to this type from the input type.
source§

impl From<JsValue> for UriError

source§

fn from(obj: JsValue) -> UriError

Converts to this type from the input type.
source§

impl From<JsValue> for WeakMap

source§

fn from(obj: JsValue) -> WeakMap

Converts to this type from the input type.
source§

impl From<JsValue> for WeakSet

source§

fn from(obj: JsValue) -> WeakSet

Converts to this type from the input type.
source§

impl From<JsValue> for WebGl2RenderingContext

source§

fn from(obj: JsValue) -> WebGl2RenderingContext

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlActiveInfo

source§

fn from(obj: JsValue) -> WebGlActiveInfo

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlBuffer

source§

fn from(obj: JsValue) -> WebGlBuffer

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlFramebuffer

source§

fn from(obj: JsValue) -> WebGlFramebuffer

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlProgram

source§

fn from(obj: JsValue) -> WebGlProgram

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlQuery

source§

fn from(obj: JsValue) -> WebGlQuery

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlRenderbuffer

source§

fn from(obj: JsValue) -> WebGlRenderbuffer

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlRenderingContext

source§

fn from(obj: JsValue) -> WebGlRenderingContext

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlSampler

source§

fn from(obj: JsValue) -> WebGlSampler

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlShader

source§

fn from(obj: JsValue) -> WebGlShader

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlSync

source§

fn from(obj: JsValue) -> WebGlSync

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlTexture

source§

fn from(obj: JsValue) -> WebGlTexture

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlTransformFeedback

source§

fn from(obj: JsValue) -> WebGlTransformFeedback

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlUniformLocation

source§

fn from(obj: JsValue) -> WebGlUniformLocation

Converts to this type from the input type.
source§

impl From<JsValue> for WebGlVertexArrayObject

source§

fn from(obj: JsValue) -> WebGlVertexArrayObject

Converts to this type from the input type.
source§

impl From<JsValue> for WebglColorBufferFloat

source§

fn from(obj: JsValue) -> WebglColorBufferFloat

Converts to this type from the input type.
source§

impl From<JsValue> for WebglCompressedTextureAstc

source§

fn from(obj: JsValue) -> WebglCompressedTextureAstc

Converts to this type from the input type.
source§

impl From<JsValue> for WebglCompressedTextureEtc

source§

fn from(obj: JsValue) -> WebglCompressedTextureEtc

Converts to this type from the input type.
source§

impl From<JsValue> for WebglCompressedTextureEtc1

source§

fn from(obj: JsValue) -> WebglCompressedTextureEtc1

Converts to this type from the input type.
source§

impl From<JsValue> for WebglCompressedTexturePvrtc

source§

fn from(obj: JsValue) -> WebglCompressedTexturePvrtc

Converts to this type from the input type.
source§

impl From<JsValue> for WebglCompressedTextureS3tc

source§

fn from(obj: JsValue) -> WebglCompressedTextureS3tc

Converts to this type from the input type.
source§

impl From<JsValue> for WebglCompressedTextureS3tcSrgb

source§

fn from(obj: JsValue) -> WebglCompressedTextureS3tcSrgb

Converts to this type from the input type.
source§

impl From<JsValue> for WebglDebugRendererInfo

source§

fn from(obj: JsValue) -> WebglDebugRendererInfo

Converts to this type from the input type.
source§

impl From<JsValue> for WebglDebugShaders

source§

fn from(obj: JsValue) -> WebglDebugShaders

Converts to this type from the input type.
source§

impl From<JsValue> for WebglDepthTexture

source§

fn from(obj: JsValue) -> WebglDepthTexture

Converts to this type from the input type.
source§

impl From<JsValue> for WebglDrawBuffers

source§

fn from(obj: JsValue) -> WebglDrawBuffers

Converts to this type from the input type.
source§

impl From<JsValue> for WebglLoseContext

source§

fn from(obj: JsValue) -> WebglLoseContext

Converts to this type from the input type.
source§

impl From<JsValue> for Window

source§

fn from(obj: JsValue) -> Window

Converts to this type from the input type.
source§

impl From<JsValue> for WorkerGlobalScope

source§

fn from(obj: JsValue) -> WorkerGlobalScope

Converts to this type from the input type.
source§

impl From<JsValue> for WorkerNavigator

source§

fn from(obj: JsValue) -> WorkerNavigator

Converts to this type from the input type.
source§

impl From<LinkError> for JsValue

source§

fn from(obj: LinkError) -> JsValue

Converts to this type from the input type.
source§

impl From<Map> for JsValue

source§

fn from(obj: Map) -> JsValue

Converts to this type from the input type.
source§

impl From<MaybeIterator> for JsValue

source§

fn from(obj: MaybeIterator) -> JsValue

Converts to this type from the input type.
source§

impl From<Memory> for JsValue

source§

fn from(obj: Memory) -> JsValue

Converts to this type from the input type.
source§

impl From<Module> for JsValue

source§

fn from(obj: Module) -> JsValue

Converts to this type from the input type.
source§

impl From<Navigator> for JsValue

source§

fn from(obj: Navigator) -> JsValue

Converts to this type from the input type.
source§

impl From<Node> for JsValue

source§

fn from(obj: Node) -> JsValue

Converts to this type from the input type.
source§

impl From<NodeList> for JsValue

source§

fn from(obj: NodeList) -> JsValue

Converts to this type from the input type.
source§

impl From<Number> for JsValue

source§

fn from(obj: Number) -> JsValue

Converts to this type from the input type.
source§

impl From<NumberFormat> for JsValue

source§

fn from(obj: NumberFormat) -> JsValue

Converts to this type from the input type.
source§

impl From<Object> for JsValue

source§

fn from(obj: Object) -> JsValue

Converts to this type from the input type.
source§

impl From<OesElementIndexUint> for JsValue

source§

fn from(obj: OesElementIndexUint) -> JsValue

Converts to this type from the input type.
source§

impl From<OesStandardDerivatives> for JsValue

source§

fn from(obj: OesStandardDerivatives) -> JsValue

Converts to this type from the input type.
source§

impl From<OesTextureFloat> for JsValue

source§

fn from(obj: OesTextureFloat) -> JsValue

Converts to this type from the input type.
source§

impl From<OesTextureFloatLinear> for JsValue

source§

fn from(obj: OesTextureFloatLinear) -> JsValue

Converts to this type from the input type.
source§

impl From<OesTextureHalfFloat> for JsValue

source§

fn from(obj: OesTextureHalfFloat) -> JsValue

Converts to this type from the input type.
source§

impl From<OesTextureHalfFloatLinear> for JsValue

source§

fn from(obj: OesTextureHalfFloatLinear) -> JsValue

Converts to this type from the input type.
source§

impl From<OesVertexArrayObject> for JsValue

source§

fn from(obj: OesVertexArrayObject) -> JsValue

Converts to this type from the input type.
source§

impl From<OffscreenCanvas> for JsValue

source§

fn from(obj: OffscreenCanvas) -> JsValue

Converts to this type from the input type.
source§

impl<T> From<Option<T>> for JsValue
where JsValue: From<T>,

source§

fn from(s: Option<T>) -> JsValue

Converts to this type from the input type.
source§

impl From<OvrMultiview2> for JsValue

source§

fn from(obj: OvrMultiview2) -> JsValue

Converts to this type from the input type.
source§

impl From<PluralRules> for JsValue

source§

fn from(obj: PluralRules) -> JsValue

Converts to this type from the input type.
source§

impl From<Promise> for JsValue

source§

fn from(obj: Promise) -> JsValue

Converts to this type from the input type.
source§

impl From<Proxy> for JsValue

source§

fn from(obj: Proxy) -> JsValue

Converts to this type from the input type.
source§

impl From<RangeError> for JsValue

source§

fn from(obj: RangeError) -> JsValue

Converts to this type from the input type.
source§

impl From<ReferenceError> for JsValue

source§

fn from(obj: ReferenceError) -> JsValue

Converts to this type from the input type.
source§

impl From<RegExp> for JsValue

source§

fn from(obj: RegExp) -> JsValue

Converts to this type from the input type.
source§

impl From<RelativeTimeFormat> for JsValue

source§

fn from(obj: RelativeTimeFormat) -> JsValue

Converts to this type from the input type.
source§

impl From<RuntimeError> for JsValue

source§

fn from(obj: RuntimeError) -> JsValue

Converts to this type from the input type.
source§

impl From<Set> for JsValue

source§

fn from(obj: Set) -> JsValue

Converts to this type from the input type.
source§

impl From<SharedArrayBuffer> for JsValue

source§

fn from(obj: SharedArrayBuffer) -> JsValue

Converts to this type from the input type.
source§

impl From<String> for JsValue

Available on crate feature std only.
source§

fn from(s: String) -> JsValue

Converts to this type from the input type.
source§

impl From<Symbol> for JsValue

source§

fn from(obj: Symbol) -> JsValue

Converts to this type from the input type.
source§

impl From<SyntaxError> for JsValue

source§

fn from(obj: SyntaxError) -> JsValue

Converts to this type from the input type.
source§

impl From<Table> for JsValue

source§

fn from(obj: Table) -> JsValue

Converts to this type from the input type.
source§

impl From<Tag> for JsValue

source§

fn from(obj: Tag) -> JsValue

Converts to this type from the input type.
source§

impl From<TypeError> for JsValue

source§

fn from(obj: TypeError) -> JsValue

Converts to this type from the input type.
source§

impl From<Uint16Array> for JsValue

source§

fn from(obj: Uint16Array) -> JsValue

Converts to this type from the input type.
source§

impl From<Uint32Array> for JsValue

source§

fn from(obj: Uint32Array) -> JsValue

Converts to this type from the input type.
source§

impl From<Uint8Array> for JsValue

source§

fn from(obj: Uint8Array) -> JsValue

Converts to this type from the input type.
source§

impl From<Uint8ClampedArray> for JsValue

source§

fn from(obj: Uint8ClampedArray) -> JsValue

Converts to this type from the input type.
source§

impl From<UriError> for JsValue

source§

fn from(obj: UriError) -> JsValue

Converts to this type from the input type.
source§

impl From<WeakMap> for JsValue

source§

fn from(obj: WeakMap) -> JsValue

Converts to this type from the input type.
source§

impl From<WeakSet> for JsValue

source§

fn from(obj: WeakSet) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGl2RenderingContext> for JsValue

source§

fn from(obj: WebGl2RenderingContext) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlActiveInfo> for JsValue

source§

fn from(obj: WebGlActiveInfo) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlBuffer> for JsValue

source§

fn from(obj: WebGlBuffer) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlFramebuffer> for JsValue

source§

fn from(obj: WebGlFramebuffer) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlProgram> for JsValue

source§

fn from(obj: WebGlProgram) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlQuery> for JsValue

source§

fn from(obj: WebGlQuery) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlRenderbuffer> for JsValue

source§

fn from(obj: WebGlRenderbuffer) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlRenderingContext> for JsValue

source§

fn from(obj: WebGlRenderingContext) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlSampler> for JsValue

source§

fn from(obj: WebGlSampler) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlShader> for JsValue

source§

fn from(obj: WebGlShader) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlSync> for JsValue

source§

fn from(obj: WebGlSync) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlTexture> for JsValue

source§

fn from(obj: WebGlTexture) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlTransformFeedback> for JsValue

source§

fn from(obj: WebGlTransformFeedback) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlUniformLocation> for JsValue

source§

fn from(obj: WebGlUniformLocation) -> JsValue

Converts to this type from the input type.
source§

impl From<WebGlVertexArrayObject> for JsValue

source§

fn from(obj: WebGlVertexArrayObject) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglColorBufferFloat> for JsValue

source§

fn from(obj: WebglColorBufferFloat) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglCompressedTextureAstc> for JsValue

source§

fn from(obj: WebglCompressedTextureAstc) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglCompressedTextureEtc> for JsValue

source§

fn from(obj: WebglCompressedTextureEtc) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglCompressedTextureEtc1> for JsValue

source§

fn from(obj: WebglCompressedTextureEtc1) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglCompressedTexturePvrtc> for JsValue

source§

fn from(obj: WebglCompressedTexturePvrtc) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglCompressedTextureS3tc> for JsValue

source§

fn from(obj: WebglCompressedTextureS3tc) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglCompressedTextureS3tcSrgb> for JsValue

source§

fn from(obj: WebglCompressedTextureS3tcSrgb) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglDebugRendererInfo> for JsValue

source§

fn from(obj: WebglDebugRendererInfo) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglDebugShaders> for JsValue

source§

fn from(obj: WebglDebugShaders) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglDepthTexture> for JsValue

source§

fn from(obj: WebglDepthTexture) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglDrawBuffers> for JsValue

source§

fn from(obj: WebglDrawBuffers) -> JsValue

Converts to this type from the input type.
source§

impl From<WebglLoseContext> for JsValue

source§

fn from(obj: WebglLoseContext) -> JsValue

Converts to this type from the input type.
source§

impl From<Window> for JsValue

source§

fn from(obj: Window) -> JsValue

Converts to this type from the input type.
source§

impl From<WorkerGlobalScope> for JsValue

source§

fn from(obj: WorkerGlobalScope) -> JsValue

Converts to this type from the input type.
source§

impl From<WorkerNavigator> for JsValue

source§

fn from(obj: WorkerNavigator) -> JsValue

Converts to this type from the input type.
source§

impl From<bool> for JsValue

source§

fn from(s: bool) -> JsValue

Converts to this type from the input type.
source§

impl From<f32> for JsValue

source§

fn from(n: f32) -> JsValue

Converts to this type from the input type.
source§

impl From<f64> for JsValue

source§

fn from(n: f64) -> JsValue

Converts to this type from the input type.
source§

impl From<i128> for JsValue

source§

fn from(n: i128) -> JsValue

Converts to this type from the input type.
source§

impl From<i16> for JsValue

source§

fn from(n: i16) -> JsValue

Converts to this type from the input type.
source§

impl From<i32> for JsValue

source§

fn from(n: i32) -> JsValue

Converts to this type from the input type.
source§

impl From<i64> for JsValue

source§

fn from(n: i64) -> JsValue

Converts to this type from the input type.
source§

impl From<i8> for JsValue

source§

fn from(n: i8) -> JsValue

Converts to this type from the input type.
source§

impl From<isize> for JsValue

source§

fn from(n: isize) -> JsValue

Converts to this type from the input type.
source§

impl From<u128> for JsValue

source§

fn from(n: u128) -> JsValue

Converts to this type from the input type.
source§

impl From<u16> for JsValue

source§

fn from(n: u16) -> JsValue

Converts to this type from the input type.
source§

impl From<u32> for JsValue

source§

fn from(n: u32) -> JsValue

Converts to this type from the input type.
source§

impl From<u64> for JsValue

source§

fn from(n: u64) -> JsValue

Converts to this type from the input type.
source§

impl From<u8> for JsValue

source§

fn from(n: u8) -> JsValue

Converts to this type from the input type.
source§

impl From<usize> for JsValue

source§

fn from(n: usize) -> JsValue

Converts to this type from the input type.
source§

impl FromWasmAbi for JsValue

§

type Abi = u32

The wasm ABI type that this converts from when coming back out from the ABI boundary.
source§

unsafe fn from_abi(js: u32) -> JsValue

Recover a Self from Self::Abi. Read more
source§

impl<'a> IntoWasmAbi for &'a JsValue

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
source§

impl IntoWasmAbi for JsValue

§

type Abi = u32

The wasm ABI type that this converts into when crossing the ABI boundary.
source§

fn into_abi(self) -> u32

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
source§

impl JsCast for JsValue

source§

fn instanceof(_val: &JsValue) -> bool

Performs a dynamic instanceof check to see whether the JsValue provided is an instance of this type. Read more
source§

fn unchecked_from_js(val: JsValue) -> JsValue

Performs a zero-cost unchecked conversion from a JsValue into an instance of Self Read more
source§

fn unchecked_from_js_ref(val: &JsValue) -> &JsValue

Performs a zero-cost unchecked conversion from a &JsValue into an instance of &Self. Read more
source§

fn has_type<T>(&self) -> bool
where T: JsCast,

Test whether this JS value has a type T. Read more
source§

fn dyn_into<T>(self) -> Result<T, Self>
where T: JsCast,

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
source§

fn dyn_ref<T>(&self) -> Option<&T>
where T: JsCast,

Performs a dynamic cast (checked at runtime) of this value into the target type T. Read more
source§

fn unchecked_into<T>(self) -> T
where T: JsCast,

Performs a zero-cost unchecked cast into the specified type. Read more
source§

fn unchecked_ref<T>(&self) -> &T
where T: JsCast,

Performs a zero-cost unchecked cast into a reference to the specified type. Read more
source§

fn is_instance_of<T>(&self) -> bool
where T: JsCast,

Test whether this JS value is an instance of the type T. Read more
source§

fn is_type_of(val: &JsValue) -> bool

Performs a dynamic check to see whether the JsValue provided is a value of this type. Read more
source§

impl LongRefFromWasmAbi for JsValue

§

type Abi = u32

Same as RefFromWasmAbi::Abi
§

type Anchor = JsValue

Same as RefFromWasmAbi::Anchor
source§

unsafe fn long_ref_from_abi(js: u32) -> <JsValue as LongRefFromWasmAbi>::Anchor

Same as RefFromWasmAbi::ref_from_abi
source§

impl Mul<&JsValue> for JsValue

§

type Output = <&'static JsValue as Mul>::Output

The resulting type after applying the * operator.
source§

fn mul(self, other: &JsValue) -> <&'static JsValue as Mul>::Output

Performs the * operation. Read more
source§

impl<'a> Mul<JsValue> for &'a JsValue

§

type Output = <&'static JsValue as Mul>::Output

The resulting type after applying the * operator.
source§

fn mul(self, other: JsValue) -> <&'static JsValue as Mul>::Output

Performs the * operation. Read more
source§

impl Mul for &JsValue

source§

fn mul(self, rhs: &JsValue) -> <&JsValue as Mul>::Output

Applies the binary * JS operator on two JsValues.

MDN documentation

§

type Output = JsValue

The resulting type after applying the * operator.
source§

impl Mul for JsValue

§

type Output = <&'static JsValue as Mul>::Output

The resulting type after applying the * operator.
source§

fn mul(self, other: JsValue) -> <&'static JsValue as Mul>::Output

Performs the * operation. Read more
source§

impl Neg for &JsValue

source§

fn neg(self) -> <&JsValue as Neg>::Output

Applies the unary - JS operator on a JsValue.

MDN documentation

§

type Output = JsValue

The resulting type after applying the - operator.
source§

impl Neg for JsValue

§

type Output = <&'static JsValue as Neg>::Output

The resulting type after applying the - operator.
source§

fn neg(self) -> <&'static JsValue as Neg>::Output

Performs the unary - operation. Read more
source§

impl Not for &JsValue

source§

fn not(self) -> <&JsValue as Not>::Output

Applies the ! JS operator on a JsValue.

MDN documentation

§

type Output = bool

The resulting type after applying the ! operator.
source§

impl Not for JsValue

§

type Output = <&'static JsValue as Not>::Output

The resulting type after applying the ! operator.
source§

fn not(self) -> <&'static JsValue as Not>::Output

Performs the unary ! operation. Read more
source§

impl<'a> PartialEq<&'a String> for JsValue

Available on crate feature std only.
source§

fn eq(&self, other: &&'a String) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<'a> PartialEq<&'a str> for JsValue

source§

fn eq(&self, other: &&'a str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<String> for JsValue

Available on crate feature std only.
source§

fn eq(&self, other: &String) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<bool> for JsValue

source§

fn eq(&self, other: &bool) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<f32> for JsValue

source§

fn eq(&self, other: &f32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<f64> for JsValue

source§

fn eq(&self, other: &f64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i128> for JsValue

source§

fn eq(&self, other: &i128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i16> for JsValue

source§

fn eq(&self, other: &i16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i32> for JsValue

source§

fn eq(&self, other: &i32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i64> for JsValue

source§

fn eq(&self, other: &i64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<i8> for JsValue

source§

fn eq(&self, other: &i8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<isize> for JsValue

source§

fn eq(&self, other: &isize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<str> for JsValue

source§

fn eq(&self, other: &str) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u128> for JsValue

source§

fn eq(&self, other: &u128) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u16> for JsValue

source§

fn eq(&self, other: &u16) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u32> for JsValue

source§

fn eq(&self, other: &u32) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u64> for JsValue

source§

fn eq(&self, other: &u64) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<u8> for JsValue

source§

fn eq(&self, other: &u8) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq<usize> for JsValue

source§

fn eq(&self, other: &usize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialEq for JsValue

source§

fn eq(&self, other: &JsValue) -> bool

Compares two JsValues for equality, using the === operator in JS.

MDN documentation

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl RefFromWasmAbi for JsValue

§

type Abi = u32

The wasm ABI type references to Self are recovered from.
§

type Anchor = ManuallyDrop<JsValue>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don’t persist beyond one function call, and so that they remain anonymous.
source§

unsafe fn ref_from_abi(js: u32) -> <JsValue as RefFromWasmAbi>::Anchor

Recover a Self::Anchor from Self::Abi. Read more
source§

impl Rem<&JsValue> for JsValue

§

type Output = <&'static JsValue as Rem>::Output

The resulting type after applying the % operator.
source§

fn rem(self, other: &JsValue) -> <&'static JsValue as Rem>::Output

Performs the % operation. Read more
source§

impl<'a> Rem<JsValue> for &'a JsValue

§

type Output = <&'static JsValue as Rem>::Output

The resulting type after applying the % operator.
source§

fn rem(self, other: JsValue) -> <&'static JsValue as Rem>::Output

Performs the % operation. Read more
source§

impl Rem for &JsValue

source§

fn rem(self, rhs: &JsValue) -> <&JsValue as Rem>::Output

Applies the binary % JS operator on two JsValues.

MDN documentation

§

type Output = JsValue

The resulting type after applying the % operator.
source§

impl Rem for JsValue

§

type Output = <&'static JsValue as Rem>::Output

The resulting type after applying the % operator.
source§

fn rem(self, other: JsValue) -> <&'static JsValue as Rem>::Output

Performs the % operation. Read more
source§

impl Shl<&JsValue> for JsValue

§

type Output = <&'static JsValue as Shl>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: &JsValue) -> <&'static JsValue as Shl>::Output

Performs the << operation. Read more
source§

impl<'a> Shl<JsValue> for &'a JsValue

§

type Output = <&'static JsValue as Shl>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: JsValue) -> <&'static JsValue as Shl>::Output

Performs the << operation. Read more
source§

impl Shl for &JsValue

source§

fn shl(self, rhs: &JsValue) -> <&JsValue as Shl>::Output

Applies the binary << JS operator on two JsValues.

MDN documentation

§

type Output = JsValue

The resulting type after applying the << operator.
source§

impl Shl for JsValue

§

type Output = <&'static JsValue as Shl>::Output

The resulting type after applying the << operator.
source§

fn shl(self, other: JsValue) -> <&'static JsValue as Shl>::Output

Performs the << operation. Read more
source§

impl Shr<&JsValue> for JsValue

§

type Output = <&'static JsValue as Shr>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: &JsValue) -> <&'static JsValue as Shr>::Output

Performs the >> operation. Read more
source§

impl<'a> Shr<JsValue> for &'a JsValue

§

type Output = <&'static JsValue as Shr>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: JsValue) -> <&'static JsValue as Shr>::Output

Performs the >> operation. Read more
source§

impl Shr for &JsValue

source§

fn shr(self, rhs: &JsValue) -> <&JsValue as Shr>::Output

Applies the binary >> JS operator on two JsValues.

MDN documentation

§

type Output = JsValue

The resulting type after applying the >> operator.
source§

impl Shr for JsValue

§

type Output = <&'static JsValue as Shr>::Output

The resulting type after applying the >> operator.
source§

fn shr(self, other: JsValue) -> <&'static JsValue as Shr>::Output

Performs the >> operation. Read more
source§

impl Sub<&JsValue> for JsValue

§

type Output = <&'static JsValue as Sub>::Output

The resulting type after applying the - operator.
source§

fn sub(self, other: &JsValue) -> <&'static JsValue as Sub>::Output

Performs the - operation. Read more
source§

impl<'a> Sub<JsValue> for &'a JsValue

§

type Output = <&'static JsValue as Sub>::Output

The resulting type after applying the - operator.
source§

fn sub(self, other: JsValue) -> <&'static JsValue as Sub>::Output

Performs the - operation. Read more
source§

impl Sub for &JsValue

source§

fn sub(self, rhs: &JsValue) -> <&JsValue as Sub>::Output

Applies the binary - JS operator on two JsValues.

MDN documentation

§

type Output = JsValue

The resulting type after applying the - operator.
source§

impl Sub for JsValue

§

type Output = <&'static JsValue as Sub>::Output

The resulting type after applying the - operator.
source§

fn sub(self, other: JsValue) -> <&'static JsValue as Sub>::Output

Performs the - operation. Read more
source§

impl TryFrom<&JsValue> for f64

source§

fn try_from(val: &JsValue) -> Result<f64, <f64 as TryFrom<&JsValue>>::Error>

Applies the unary + JS operator on a JsValue. Returns the numeric result on success, or the JS error value on error.

MDN documentation

§

type Error = JsValue

The type returned in the event of a conversion error.
source§

impl TryFrom<JsValue> for String

Available on crate feature std only.
§

type Error = JsValue

The type returned in the event of a conversion error.
source§

fn try_from( value: JsValue ) -> Result<String, <String as TryFrom<JsValue>>::Error>

Performs the conversion.
source§

impl TryFrom<JsValue> for f64

source§

fn try_from(val: JsValue) -> Result<f64, <f64 as TryFrom<JsValue>>::Error>

Applies the unary + JS operator on a JsValue. Returns the numeric result on success, or the JS error value on error.

MDN documentation

§

type Error = JsValue

The type returned in the event of a conversion error.
source§

impl TryFrom<JsValue> for i128

§

type Error = JsValue

The type returned in the event of a conversion error.
source§

fn try_from(v: JsValue) -> Result<i128, JsValue>

Performs the conversion.
source§

impl TryFrom<JsValue> for i64

§

type Error = JsValue

The type returned in the event of a conversion error.
source§

fn try_from(v: JsValue) -> Result<i64, JsValue>

Performs the conversion.
source§

impl TryFrom<JsValue> for u128

§

type Error = JsValue

The type returned in the event of a conversion error.
source§

fn try_from(v: JsValue) -> Result<u128, JsValue>

Performs the conversion.
source§

impl TryFrom<JsValue> for u64

§

type Error = JsValue

The type returned in the event of a conversion error.
source§

fn try_from(v: JsValue) -> Result<u64, JsValue>

Performs the conversion.
source§

impl VectorFromWasmAbi for JsValue

Available on crate feature std only.
source§

impl VectorIntoWasmAbi for JsValue

Available on crate feature std only.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ReturnWasmAbi for T
where T: IntoWasmAbi,

§

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi
source§

fn return_abi(self) -> <T as ReturnWasmAbi>::Abi

Same as IntoWasmAbi::into_abi, except that it may throw and never return in the case of Err.
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.