pub struct JsValue { /* private fields */ }
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
impl JsValue
sourcepub fn from_str(s: &str) -> JsValue
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.
sourcepub fn from_f64(n: f64) -> JsValue
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.
sourcepub fn bigint_from_str(s: &str) -> JsValue
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.
sourcepub const fn from_bool(b: bool) -> JsValue
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.
sourcepub fn symbol(description: Option<&str>) -> JsValue
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.
sourcepub fn as_f64(&self) -> Option<f64>
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
.
sourcepub fn as_string(&self) -> Option<String>
Available on crate feature std
only.
pub fn as_string(&self) -> Option<String>
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.
sourcepub fn as_bool(&self) -> Option<bool>
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
.
sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Tests whether this JS value is undefined
sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Tests whether the type of this JS value is function
.
sourcepub fn js_in(&self, obj: &JsValue) -> bool
pub fn js_in(&self, obj: &JsValue) -> bool
Applies the binary in
JS operator on the two JsValue
s.
sourcepub fn loose_eq(&self, other: &JsValue) -> bool
pub fn loose_eq(&self, other: &JsValue) -> bool
Compare two JsValue
s for equality, using the ==
operator in JS.
sourcepub fn unsigned_shr(&self, rhs: &JsValue) -> u32
pub fn unsigned_shr(&self, rhs: &JsValue) -> u32
Applies the binary >>>
JS operator on the two JsValue
s.
sourcepub fn checked_div(&self, rhs: &JsValue) -> JsValue
pub fn checked_div(&self, rhs: &JsValue) -> JsValue
Applies the binary /
JS operator on two JsValue
s, catching and returning any RangeError
thrown.
sourcepub fn pow(&self, rhs: &JsValue) -> JsValue
pub fn pow(&self, rhs: &JsValue) -> JsValue
Applies the binary **
JS operator on the two JsValue
s.
sourcepub fn lt(&self, other: &JsValue) -> bool
pub fn lt(&self, other: &JsValue) -> bool
Applies the binary <
JS operator on the two JsValue
s.
sourcepub fn le(&self, other: &JsValue) -> bool
pub fn le(&self, other: &JsValue) -> bool
Applies the binary <=
JS operator on the two JsValue
s.
sourcepub fn ge(&self, other: &JsValue) -> bool
pub fn ge(&self, other: &JsValue) -> bool
Applies the binary >=
JS operator on the two JsValue
s.
sourcepub fn gt(&self, other: &JsValue) -> bool
pub fn gt(&self, other: &JsValue) -> bool
Applies the binary >
JS operator on the two JsValue
s.
sourcepub fn unchecked_into_f64(&self) -> f64
pub fn unchecked_into_f64(&self) -> f64
Applies the unary +
JS operator on a JsValue
. Can throw.
Trait Implementations§
source§impl AsRef<JsValue> for AngleInstancedArrays
impl AsRef<JsValue> for AngleInstancedArrays
source§impl AsRef<JsValue> for ArrayBuffer
impl AsRef<JsValue> for ArrayBuffer
source§impl AsRef<JsValue> for AsyncIterator
impl AsRef<JsValue> for AsyncIterator
source§impl AsRef<JsValue> for BigInt64Array
impl AsRef<JsValue> for BigInt64Array
source§impl AsRef<JsValue> for BigUint64Array
impl AsRef<JsValue> for BigUint64Array
source§impl AsRef<JsValue> for CompileError
impl AsRef<JsValue> for CompileError
source§impl AsRef<JsValue> for DateTimeFormat
impl AsRef<JsValue> for DateTimeFormat
source§impl AsRef<JsValue> for EventTarget
impl AsRef<JsValue> for EventTarget
source§impl AsRef<JsValue> for ExtBlendMinmax
impl AsRef<JsValue> for ExtBlendMinmax
source§impl AsRef<JsValue> for ExtColorBufferFloat
impl AsRef<JsValue> for ExtColorBufferFloat
source§impl AsRef<JsValue> for ExtColorBufferHalfFloat
impl AsRef<JsValue> for ExtColorBufferHalfFloat
source§impl AsRef<JsValue> for ExtDisjointTimerQuery
impl AsRef<JsValue> for ExtDisjointTimerQuery
source§impl AsRef<JsValue> for ExtFragDepth
impl AsRef<JsValue> for ExtFragDepth
source§impl AsRef<JsValue> for ExtShaderTextureLod
impl AsRef<JsValue> for ExtShaderTextureLod
source§impl AsRef<JsValue> for ExtTextureFilterAnisotropic
impl AsRef<JsValue> for ExtTextureFilterAnisotropic
source§impl AsRef<JsValue> for Float32Array
impl AsRef<JsValue> for Float32Array
source§impl AsRef<JsValue> for Float64Array
impl AsRef<JsValue> for Float64Array
source§impl AsRef<JsValue> for HtmlCanvasElement
impl AsRef<JsValue> for HtmlCanvasElement
source§impl AsRef<JsValue> for HtmlElement
impl AsRef<JsValue> for HtmlElement
source§impl AsRef<JsValue> for HtmlImageElement
impl AsRef<JsValue> for HtmlImageElement
source§impl AsRef<JsValue> for HtmlMediaElement
impl AsRef<JsValue> for HtmlMediaElement
source§impl AsRef<JsValue> for HtmlVideoElement
impl AsRef<JsValue> for HtmlVideoElement
source§impl AsRef<JsValue> for ImageBitmap
impl AsRef<JsValue> for ImageBitmap
source§impl AsRef<JsValue> for ImageBitmapRenderingContext
impl AsRef<JsValue> for ImageBitmapRenderingContext
source§impl AsRef<JsValue> for Int16Array
impl AsRef<JsValue> for Int16Array
source§impl AsRef<JsValue> for Int32Array
impl AsRef<JsValue> for Int32Array
source§impl AsRef<JsValue> for IteratorNext
impl AsRef<JsValue> for IteratorNext
source§impl AsRef<JsValue> for NumberFormat
impl AsRef<JsValue> for NumberFormat
source§impl AsRef<JsValue> for OesElementIndexUint
impl AsRef<JsValue> for OesElementIndexUint
source§impl AsRef<JsValue> for OesStandardDerivatives
impl AsRef<JsValue> for OesStandardDerivatives
source§impl AsRef<JsValue> for OesTextureFloat
impl AsRef<JsValue> for OesTextureFloat
source§impl AsRef<JsValue> for OesTextureFloatLinear
impl AsRef<JsValue> for OesTextureFloatLinear
source§impl AsRef<JsValue> for OesTextureHalfFloat
impl AsRef<JsValue> for OesTextureHalfFloat
source§impl AsRef<JsValue> for OesTextureHalfFloatLinear
impl AsRef<JsValue> for OesTextureHalfFloatLinear
source§impl AsRef<JsValue> for OesVertexArrayObject
impl AsRef<JsValue> for OesVertexArrayObject
source§impl AsRef<JsValue> for OffscreenCanvas
impl AsRef<JsValue> for OffscreenCanvas
source§impl AsRef<JsValue> for OvrMultiview2
impl AsRef<JsValue> for OvrMultiview2
source§impl AsRef<JsValue> for PluralRules
impl AsRef<JsValue> for PluralRules
source§impl AsRef<JsValue> for RangeError
impl AsRef<JsValue> for RangeError
source§impl AsRef<JsValue> for ReferenceError
impl AsRef<JsValue> for ReferenceError
source§impl AsRef<JsValue> for RelativeTimeFormat
impl AsRef<JsValue> for RelativeTimeFormat
source§impl AsRef<JsValue> for RuntimeError
impl AsRef<JsValue> for RuntimeError
source§impl AsRef<JsValue> for SyntaxError
impl AsRef<JsValue> for SyntaxError
source§impl AsRef<JsValue> for Uint16Array
impl AsRef<JsValue> for Uint16Array
source§impl AsRef<JsValue> for Uint32Array
impl AsRef<JsValue> for Uint32Array
source§impl AsRef<JsValue> for Uint8Array
impl AsRef<JsValue> for Uint8Array
source§impl AsRef<JsValue> for Uint8ClampedArray
impl AsRef<JsValue> for Uint8ClampedArray
source§impl AsRef<JsValue> for WebGl2RenderingContext
impl AsRef<JsValue> for WebGl2RenderingContext
source§impl AsRef<JsValue> for WebGlActiveInfo
impl AsRef<JsValue> for WebGlActiveInfo
source§impl AsRef<JsValue> for WebGlBuffer
impl AsRef<JsValue> for WebGlBuffer
source§impl AsRef<JsValue> for WebGlFramebuffer
impl AsRef<JsValue> for WebGlFramebuffer
source§impl AsRef<JsValue> for WebGlProgram
impl AsRef<JsValue> for WebGlProgram
source§impl AsRef<JsValue> for WebGlQuery
impl AsRef<JsValue> for WebGlQuery
source§impl AsRef<JsValue> for WebGlRenderbuffer
impl AsRef<JsValue> for WebGlRenderbuffer
source§impl AsRef<JsValue> for WebGlRenderingContext
impl AsRef<JsValue> for WebGlRenderingContext
source§impl AsRef<JsValue> for WebGlSampler
impl AsRef<JsValue> for WebGlSampler
source§impl AsRef<JsValue> for WebGlShader
impl AsRef<JsValue> for WebGlShader
source§impl AsRef<JsValue> for WebGlTexture
impl AsRef<JsValue> for WebGlTexture
source§impl AsRef<JsValue> for WebGlTransformFeedback
impl AsRef<JsValue> for WebGlTransformFeedback
source§impl AsRef<JsValue> for WebGlUniformLocation
impl AsRef<JsValue> for WebGlUniformLocation
source§impl AsRef<JsValue> for WebGlVertexArrayObject
impl AsRef<JsValue> for WebGlVertexArrayObject
source§impl AsRef<JsValue> for WebglColorBufferFloat
impl AsRef<JsValue> for WebglColorBufferFloat
source§impl AsRef<JsValue> for WebglCompressedTextureAstc
impl AsRef<JsValue> for WebglCompressedTextureAstc
source§impl AsRef<JsValue> for WebglCompressedTextureEtc
impl AsRef<JsValue> for WebglCompressedTextureEtc
source§impl AsRef<JsValue> for WebglCompressedTextureEtc1
impl AsRef<JsValue> for WebglCompressedTextureEtc1
source§impl AsRef<JsValue> for WebglCompressedTexturePvrtc
impl AsRef<JsValue> for WebglCompressedTexturePvrtc
source§impl AsRef<JsValue> for WebglCompressedTextureS3tc
impl AsRef<JsValue> for WebglCompressedTextureS3tc
source§impl AsRef<JsValue> for WebglDebugRendererInfo
impl AsRef<JsValue> for WebglDebugRendererInfo
source§impl AsRef<JsValue> for WebglDebugShaders
impl AsRef<JsValue> for WebglDebugShaders
source§impl AsRef<JsValue> for WebglDepthTexture
impl AsRef<JsValue> for WebglDepthTexture
source§impl AsRef<JsValue> for WebglDrawBuffers
impl AsRef<JsValue> for WebglDrawBuffers
source§impl AsRef<JsValue> for WebglLoseContext
impl AsRef<JsValue> for WebglLoseContext
source§impl AsRef<JsValue> for WorkerGlobalScope
impl AsRef<JsValue> for WorkerGlobalScope
source§impl From<AngleInstancedArrays> for JsValue
impl From<AngleInstancedArrays> for JsValue
source§fn from(obj: AngleInstancedArrays) -> JsValue
fn from(obj: AngleInstancedArrays) -> JsValue
source§impl From<ArrayBuffer> for JsValue
impl From<ArrayBuffer> for JsValue
source§fn from(obj: ArrayBuffer) -> JsValue
fn from(obj: ArrayBuffer) -> JsValue
source§impl From<AsyncIterator> for JsValue
impl From<AsyncIterator> for JsValue
source§fn from(obj: AsyncIterator) -> JsValue
fn from(obj: AsyncIterator) -> JsValue
source§impl From<BigInt64Array> for JsValue
impl From<BigInt64Array> for JsValue
source§fn from(obj: BigInt64Array) -> JsValue
fn from(obj: BigInt64Array) -> JsValue
source§impl From<BigUint64Array> for JsValue
impl From<BigUint64Array> for JsValue
source§fn from(obj: BigUint64Array) -> JsValue
fn from(obj: BigUint64Array) -> JsValue
source§impl From<CompileError> for JsValue
impl From<CompileError> for JsValue
source§fn from(obj: CompileError) -> JsValue
fn from(obj: CompileError) -> JsValue
source§impl From<DateTimeFormat> for JsValue
impl From<DateTimeFormat> for JsValue
source§fn from(obj: DateTimeFormat) -> JsValue
fn from(obj: DateTimeFormat) -> JsValue
source§impl From<EventTarget> for JsValue
impl From<EventTarget> for JsValue
source§fn from(obj: EventTarget) -> JsValue
fn from(obj: EventTarget) -> JsValue
source§impl From<ExtBlendMinmax> for JsValue
impl From<ExtBlendMinmax> for JsValue
source§fn from(obj: ExtBlendMinmax) -> JsValue
fn from(obj: ExtBlendMinmax) -> JsValue
source§impl From<ExtColorBufferFloat> for JsValue
impl From<ExtColorBufferFloat> for JsValue
source§fn from(obj: ExtColorBufferFloat) -> JsValue
fn from(obj: ExtColorBufferFloat) -> JsValue
source§impl From<ExtColorBufferHalfFloat> for JsValue
impl From<ExtColorBufferHalfFloat> for JsValue
source§fn from(obj: ExtColorBufferHalfFloat) -> JsValue
fn from(obj: ExtColorBufferHalfFloat) -> JsValue
source§impl From<ExtDisjointTimerQuery> for JsValue
impl From<ExtDisjointTimerQuery> for JsValue
source§fn from(obj: ExtDisjointTimerQuery) -> JsValue
fn from(obj: ExtDisjointTimerQuery) -> JsValue
source§impl From<ExtFragDepth> for JsValue
impl From<ExtFragDepth> for JsValue
source§fn from(obj: ExtFragDepth) -> JsValue
fn from(obj: ExtFragDepth) -> JsValue
source§impl From<ExtShaderTextureLod> for JsValue
impl From<ExtShaderTextureLod> for JsValue
source§fn from(obj: ExtShaderTextureLod) -> JsValue
fn from(obj: ExtShaderTextureLod) -> JsValue
source§impl From<ExtTextureFilterAnisotropic> for JsValue
impl From<ExtTextureFilterAnisotropic> for JsValue
source§fn from(obj: ExtTextureFilterAnisotropic) -> JsValue
fn from(obj: ExtTextureFilterAnisotropic) -> JsValue
source§impl From<Float32Array> for JsValue
impl From<Float32Array> for JsValue
source§fn from(obj: Float32Array) -> JsValue
fn from(obj: Float32Array) -> JsValue
source§impl From<Float64Array> for JsValue
impl From<Float64Array> for JsValue
source§fn from(obj: Float64Array) -> JsValue
fn from(obj: Float64Array) -> JsValue
source§impl From<HtmlCanvasElement> for JsValue
impl From<HtmlCanvasElement> for JsValue
source§fn from(obj: HtmlCanvasElement) -> JsValue
fn from(obj: HtmlCanvasElement) -> JsValue
source§impl From<HtmlElement> for JsValue
impl From<HtmlElement> for JsValue
source§fn from(obj: HtmlElement) -> JsValue
fn from(obj: HtmlElement) -> JsValue
source§impl From<HtmlImageElement> for JsValue
impl From<HtmlImageElement> for JsValue
source§fn from(obj: HtmlImageElement) -> JsValue
fn from(obj: HtmlImageElement) -> JsValue
source§impl From<HtmlMediaElement> for JsValue
impl From<HtmlMediaElement> for JsValue
source§fn from(obj: HtmlMediaElement) -> JsValue
fn from(obj: HtmlMediaElement) -> JsValue
source§impl From<HtmlVideoElement> for JsValue
impl From<HtmlVideoElement> for JsValue
source§fn from(obj: HtmlVideoElement) -> JsValue
fn from(obj: HtmlVideoElement) -> JsValue
source§impl From<ImageBitmap> for JsValue
impl From<ImageBitmap> for JsValue
source§fn from(obj: ImageBitmap) -> JsValue
fn from(obj: ImageBitmap) -> JsValue
source§impl From<ImageBitmapRenderingContext> for JsValue
impl From<ImageBitmapRenderingContext> for JsValue
source§fn from(obj: ImageBitmapRenderingContext) -> JsValue
fn from(obj: ImageBitmapRenderingContext) -> JsValue
source§impl From<Int16Array> for JsValue
impl From<Int16Array> for JsValue
source§fn from(obj: Int16Array) -> JsValue
fn from(obj: Int16Array) -> JsValue
source§impl From<Int32Array> for JsValue
impl From<Int32Array> for JsValue
source§fn from(obj: Int32Array) -> JsValue
fn from(obj: Int32Array) -> JsValue
source§impl From<IteratorNext> for JsValue
impl From<IteratorNext> for JsValue
source§fn from(obj: IteratorNext) -> JsValue
fn from(obj: IteratorNext) -> JsValue
source§impl From<JsValue> for AngleInstancedArrays
impl From<JsValue> for AngleInstancedArrays
source§fn from(obj: JsValue) -> AngleInstancedArrays
fn from(obj: JsValue) -> AngleInstancedArrays
source§impl From<JsValue> for ArrayBuffer
impl From<JsValue> for ArrayBuffer
source§fn from(obj: JsValue) -> ArrayBuffer
fn from(obj: JsValue) -> ArrayBuffer
source§impl From<JsValue> for AsyncIterator
impl From<JsValue> for AsyncIterator
source§fn from(obj: JsValue) -> AsyncIterator
fn from(obj: JsValue) -> AsyncIterator
source§impl From<JsValue> for BigInt64Array
impl From<JsValue> for BigInt64Array
source§fn from(obj: JsValue) -> BigInt64Array
fn from(obj: JsValue) -> BigInt64Array
source§impl From<JsValue> for BigUint64Array
impl From<JsValue> for BigUint64Array
source§fn from(obj: JsValue) -> BigUint64Array
fn from(obj: JsValue) -> BigUint64Array
source§impl From<JsValue> for CompileError
impl From<JsValue> for CompileError
source§fn from(obj: JsValue) -> CompileError
fn from(obj: JsValue) -> CompileError
source§impl From<JsValue> for DateTimeFormat
impl From<JsValue> for DateTimeFormat
source§fn from(obj: JsValue) -> DateTimeFormat
fn from(obj: JsValue) -> DateTimeFormat
source§impl From<JsValue> for EventTarget
impl From<JsValue> for EventTarget
source§fn from(obj: JsValue) -> EventTarget
fn from(obj: JsValue) -> EventTarget
source§impl From<JsValue> for ExtBlendMinmax
impl From<JsValue> for ExtBlendMinmax
source§fn from(obj: JsValue) -> ExtBlendMinmax
fn from(obj: JsValue) -> ExtBlendMinmax
source§impl From<JsValue> for ExtColorBufferFloat
impl From<JsValue> for ExtColorBufferFloat
source§fn from(obj: JsValue) -> ExtColorBufferFloat
fn from(obj: JsValue) -> ExtColorBufferFloat
source§impl From<JsValue> for ExtColorBufferHalfFloat
impl From<JsValue> for ExtColorBufferHalfFloat
source§fn from(obj: JsValue) -> ExtColorBufferHalfFloat
fn from(obj: JsValue) -> ExtColorBufferHalfFloat
source§impl From<JsValue> for ExtDisjointTimerQuery
impl From<JsValue> for ExtDisjointTimerQuery
source§fn from(obj: JsValue) -> ExtDisjointTimerQuery
fn from(obj: JsValue) -> ExtDisjointTimerQuery
source§impl From<JsValue> for ExtFragDepth
impl From<JsValue> for ExtFragDepth
source§fn from(obj: JsValue) -> ExtFragDepth
fn from(obj: JsValue) -> ExtFragDepth
source§impl From<JsValue> for ExtShaderTextureLod
impl From<JsValue> for ExtShaderTextureLod
source§fn from(obj: JsValue) -> ExtShaderTextureLod
fn from(obj: JsValue) -> ExtShaderTextureLod
source§impl From<JsValue> for ExtTextureFilterAnisotropic
impl From<JsValue> for ExtTextureFilterAnisotropic
source§fn from(obj: JsValue) -> ExtTextureFilterAnisotropic
fn from(obj: JsValue) -> ExtTextureFilterAnisotropic
source§impl From<JsValue> for Float32Array
impl From<JsValue> for Float32Array
source§fn from(obj: JsValue) -> Float32Array
fn from(obj: JsValue) -> Float32Array
source§impl From<JsValue> for Float64Array
impl From<JsValue> for Float64Array
source§fn from(obj: JsValue) -> Float64Array
fn from(obj: JsValue) -> Float64Array
source§impl From<JsValue> for HtmlCanvasElement
impl From<JsValue> for HtmlCanvasElement
source§fn from(obj: JsValue) -> HtmlCanvasElement
fn from(obj: JsValue) -> HtmlCanvasElement
source§impl From<JsValue> for HtmlElement
impl From<JsValue> for HtmlElement
source§fn from(obj: JsValue) -> HtmlElement
fn from(obj: JsValue) -> HtmlElement
source§impl From<JsValue> for HtmlImageElement
impl From<JsValue> for HtmlImageElement
source§fn from(obj: JsValue) -> HtmlImageElement
fn from(obj: JsValue) -> HtmlImageElement
source§impl From<JsValue> for HtmlMediaElement
impl From<JsValue> for HtmlMediaElement
source§fn from(obj: JsValue) -> HtmlMediaElement
fn from(obj: JsValue) -> HtmlMediaElement
source§impl From<JsValue> for HtmlVideoElement
impl From<JsValue> for HtmlVideoElement
source§fn from(obj: JsValue) -> HtmlVideoElement
fn from(obj: JsValue) -> HtmlVideoElement
source§impl From<JsValue> for ImageBitmap
impl From<JsValue> for ImageBitmap
source§fn from(obj: JsValue) -> ImageBitmap
fn from(obj: JsValue) -> ImageBitmap
source§impl From<JsValue> for ImageBitmapRenderingContext
impl From<JsValue> for ImageBitmapRenderingContext
source§fn from(obj: JsValue) -> ImageBitmapRenderingContext
fn from(obj: JsValue) -> ImageBitmapRenderingContext
source§impl From<JsValue> for Int16Array
impl From<JsValue> for Int16Array
source§fn from(obj: JsValue) -> Int16Array
fn from(obj: JsValue) -> Int16Array
source§impl From<JsValue> for Int32Array
impl From<JsValue> for Int32Array
source§fn from(obj: JsValue) -> Int32Array
fn from(obj: JsValue) -> Int32Array
source§impl From<JsValue> for IteratorNext
impl From<JsValue> for IteratorNext
source§fn from(obj: JsValue) -> IteratorNext
fn from(obj: JsValue) -> IteratorNext
source§impl From<JsValue> for NumberFormat
impl From<JsValue> for NumberFormat
source§fn from(obj: JsValue) -> NumberFormat
fn from(obj: JsValue) -> NumberFormat
source§impl From<JsValue> for OesElementIndexUint
impl From<JsValue> for OesElementIndexUint
source§fn from(obj: JsValue) -> OesElementIndexUint
fn from(obj: JsValue) -> OesElementIndexUint
source§impl From<JsValue> for OesStandardDerivatives
impl From<JsValue> for OesStandardDerivatives
source§fn from(obj: JsValue) -> OesStandardDerivatives
fn from(obj: JsValue) -> OesStandardDerivatives
source§impl From<JsValue> for OesTextureFloat
impl From<JsValue> for OesTextureFloat
source§fn from(obj: JsValue) -> OesTextureFloat
fn from(obj: JsValue) -> OesTextureFloat
source§impl From<JsValue> for OesTextureFloatLinear
impl From<JsValue> for OesTextureFloatLinear
source§fn from(obj: JsValue) -> OesTextureFloatLinear
fn from(obj: JsValue) -> OesTextureFloatLinear
source§impl From<JsValue> for OesTextureHalfFloat
impl From<JsValue> for OesTextureHalfFloat
source§fn from(obj: JsValue) -> OesTextureHalfFloat
fn from(obj: JsValue) -> OesTextureHalfFloat
source§impl From<JsValue> for OesTextureHalfFloatLinear
impl From<JsValue> for OesTextureHalfFloatLinear
source§fn from(obj: JsValue) -> OesTextureHalfFloatLinear
fn from(obj: JsValue) -> OesTextureHalfFloatLinear
source§impl From<JsValue> for OesVertexArrayObject
impl From<JsValue> for OesVertexArrayObject
source§fn from(obj: JsValue) -> OesVertexArrayObject
fn from(obj: JsValue) -> OesVertexArrayObject
source§impl From<JsValue> for OffscreenCanvas
impl From<JsValue> for OffscreenCanvas
source§fn from(obj: JsValue) -> OffscreenCanvas
fn from(obj: JsValue) -> OffscreenCanvas
source§impl From<JsValue> for OvrMultiview2
impl From<JsValue> for OvrMultiview2
source§fn from(obj: JsValue) -> OvrMultiview2
fn from(obj: JsValue) -> OvrMultiview2
source§impl From<JsValue> for PluralRules
impl From<JsValue> for PluralRules
source§fn from(obj: JsValue) -> PluralRules
fn from(obj: JsValue) -> PluralRules
source§impl From<JsValue> for RangeError
impl From<JsValue> for RangeError
source§fn from(obj: JsValue) -> RangeError
fn from(obj: JsValue) -> RangeError
source§impl From<JsValue> for ReferenceError
impl From<JsValue> for ReferenceError
source§fn from(obj: JsValue) -> ReferenceError
fn from(obj: JsValue) -> ReferenceError
source§impl From<JsValue> for RelativeTimeFormat
impl From<JsValue> for RelativeTimeFormat
source§fn from(obj: JsValue) -> RelativeTimeFormat
fn from(obj: JsValue) -> RelativeTimeFormat
source§impl From<JsValue> for RuntimeError
impl From<JsValue> for RuntimeError
source§fn from(obj: JsValue) -> RuntimeError
fn from(obj: JsValue) -> RuntimeError
source§fn from(obj: JsValue) -> SharedArrayBuffer
fn from(obj: JsValue) -> SharedArrayBuffer
source§impl From<JsValue> for SyntaxError
impl From<JsValue> for SyntaxError
source§fn from(obj: JsValue) -> SyntaxError
fn from(obj: JsValue) -> SyntaxError
source§impl From<JsValue> for Uint16Array
impl From<JsValue> for Uint16Array
source§fn from(obj: JsValue) -> Uint16Array
fn from(obj: JsValue) -> Uint16Array
source§impl From<JsValue> for Uint32Array
impl From<JsValue> for Uint32Array
source§fn from(obj: JsValue) -> Uint32Array
fn from(obj: JsValue) -> Uint32Array
source§impl From<JsValue> for Uint8Array
impl From<JsValue> for Uint8Array
source§fn from(obj: JsValue) -> Uint8Array
fn from(obj: JsValue) -> Uint8Array
source§impl From<JsValue> for Uint8ClampedArray
impl From<JsValue> for Uint8ClampedArray
source§fn from(obj: JsValue) -> Uint8ClampedArray
fn from(obj: JsValue) -> Uint8ClampedArray
source§impl From<JsValue> for WebGl2RenderingContext
impl From<JsValue> for WebGl2RenderingContext
source§fn from(obj: JsValue) -> WebGl2RenderingContext
fn from(obj: JsValue) -> WebGl2RenderingContext
source§impl From<JsValue> for WebGlActiveInfo
impl From<JsValue> for WebGlActiveInfo
source§fn from(obj: JsValue) -> WebGlActiveInfo
fn from(obj: JsValue) -> WebGlActiveInfo
source§impl From<JsValue> for WebGlBuffer
impl From<JsValue> for WebGlBuffer
source§fn from(obj: JsValue) -> WebGlBuffer
fn from(obj: JsValue) -> WebGlBuffer
source§impl From<JsValue> for WebGlFramebuffer
impl From<JsValue> for WebGlFramebuffer
source§fn from(obj: JsValue) -> WebGlFramebuffer
fn from(obj: JsValue) -> WebGlFramebuffer
source§impl From<JsValue> for WebGlProgram
impl From<JsValue> for WebGlProgram
source§fn from(obj: JsValue) -> WebGlProgram
fn from(obj: JsValue) -> WebGlProgram
source§impl From<JsValue> for WebGlQuery
impl From<JsValue> for WebGlQuery
source§fn from(obj: JsValue) -> WebGlQuery
fn from(obj: JsValue) -> WebGlQuery
source§impl From<JsValue> for WebGlRenderbuffer
impl From<JsValue> for WebGlRenderbuffer
source§fn from(obj: JsValue) -> WebGlRenderbuffer
fn from(obj: JsValue) -> WebGlRenderbuffer
source§impl From<JsValue> for WebGlRenderingContext
impl From<JsValue> for WebGlRenderingContext
source§fn from(obj: JsValue) -> WebGlRenderingContext
fn from(obj: JsValue) -> WebGlRenderingContext
source§impl From<JsValue> for WebGlSampler
impl From<JsValue> for WebGlSampler
source§fn from(obj: JsValue) -> WebGlSampler
fn from(obj: JsValue) -> WebGlSampler
source§impl From<JsValue> for WebGlShader
impl From<JsValue> for WebGlShader
source§fn from(obj: JsValue) -> WebGlShader
fn from(obj: JsValue) -> WebGlShader
source§impl From<JsValue> for WebGlTexture
impl From<JsValue> for WebGlTexture
source§fn from(obj: JsValue) -> WebGlTexture
fn from(obj: JsValue) -> WebGlTexture
source§impl From<JsValue> for WebGlTransformFeedback
impl From<JsValue> for WebGlTransformFeedback
source§fn from(obj: JsValue) -> WebGlTransformFeedback
fn from(obj: JsValue) -> WebGlTransformFeedback
source§impl From<JsValue> for WebGlUniformLocation
impl From<JsValue> for WebGlUniformLocation
source§fn from(obj: JsValue) -> WebGlUniformLocation
fn from(obj: JsValue) -> WebGlUniformLocation
source§impl From<JsValue> for WebGlVertexArrayObject
impl From<JsValue> for WebGlVertexArrayObject
source§fn from(obj: JsValue) -> WebGlVertexArrayObject
fn from(obj: JsValue) -> WebGlVertexArrayObject
source§impl From<JsValue> for WebglColorBufferFloat
impl From<JsValue> for WebglColorBufferFloat
source§fn from(obj: JsValue) -> WebglColorBufferFloat
fn from(obj: JsValue) -> WebglColorBufferFloat
source§impl From<JsValue> for WebglCompressedTextureAstc
impl From<JsValue> for WebglCompressedTextureAstc
source§fn from(obj: JsValue) -> WebglCompressedTextureAstc
fn from(obj: JsValue) -> WebglCompressedTextureAstc
source§impl From<JsValue> for WebglCompressedTextureEtc
impl From<JsValue> for WebglCompressedTextureEtc
source§fn from(obj: JsValue) -> WebglCompressedTextureEtc
fn from(obj: JsValue) -> WebglCompressedTextureEtc
source§impl From<JsValue> for WebglCompressedTextureEtc1
impl From<JsValue> for WebglCompressedTextureEtc1
source§fn from(obj: JsValue) -> WebglCompressedTextureEtc1
fn from(obj: JsValue) -> WebglCompressedTextureEtc1
source§impl From<JsValue> for WebglCompressedTexturePvrtc
impl From<JsValue> for WebglCompressedTexturePvrtc
source§fn from(obj: JsValue) -> WebglCompressedTexturePvrtc
fn from(obj: JsValue) -> WebglCompressedTexturePvrtc
source§impl From<JsValue> for WebglCompressedTextureS3tc
impl From<JsValue> for WebglCompressedTextureS3tc
source§fn from(obj: JsValue) -> WebglCompressedTextureS3tc
fn from(obj: JsValue) -> WebglCompressedTextureS3tc
source§impl From<JsValue> for WebglCompressedTextureS3tcSrgb
impl From<JsValue> for WebglCompressedTextureS3tcSrgb
source§fn from(obj: JsValue) -> WebglCompressedTextureS3tcSrgb
fn from(obj: JsValue) -> WebglCompressedTextureS3tcSrgb
source§impl From<JsValue> for WebglDebugRendererInfo
impl From<JsValue> for WebglDebugRendererInfo
source§fn from(obj: JsValue) -> WebglDebugRendererInfo
fn from(obj: JsValue) -> WebglDebugRendererInfo
source§impl From<JsValue> for WebglDebugShaders
impl From<JsValue> for WebglDebugShaders
source§fn from(obj: JsValue) -> WebglDebugShaders
fn from(obj: JsValue) -> WebglDebugShaders
source§impl From<JsValue> for WebglDepthTexture
impl From<JsValue> for WebglDepthTexture
source§fn from(obj: JsValue) -> WebglDepthTexture
fn from(obj: JsValue) -> WebglDepthTexture
source§impl From<JsValue> for WebglDrawBuffers
impl From<JsValue> for WebglDrawBuffers
source§fn from(obj: JsValue) -> WebglDrawBuffers
fn from(obj: JsValue) -> WebglDrawBuffers
source§impl From<JsValue> for WebglLoseContext
impl From<JsValue> for WebglLoseContext
source§fn from(obj: JsValue) -> WebglLoseContext
fn from(obj: JsValue) -> WebglLoseContext
source§impl From<JsValue> for WorkerGlobalScope
impl From<JsValue> for WorkerGlobalScope
source§fn from(obj: JsValue) -> WorkerGlobalScope
fn from(obj: JsValue) -> WorkerGlobalScope
source§fn from(obj: JsValue) -> WorkerNavigator
fn from(obj: JsValue) -> WorkerNavigator
source§impl From<NumberFormat> for JsValue
impl From<NumberFormat> for JsValue
source§fn from(obj: NumberFormat) -> JsValue
fn from(obj: NumberFormat) -> JsValue
source§impl From<OesElementIndexUint> for JsValue
impl From<OesElementIndexUint> for JsValue
source§fn from(obj: OesElementIndexUint) -> JsValue
fn from(obj: OesElementIndexUint) -> JsValue
source§impl From<OesStandardDerivatives> for JsValue
impl From<OesStandardDerivatives> for JsValue
source§fn from(obj: OesStandardDerivatives) -> JsValue
fn from(obj: OesStandardDerivatives) -> JsValue
source§impl From<OesTextureFloat> for JsValue
impl From<OesTextureFloat> for JsValue
source§fn from(obj: OesTextureFloat) -> JsValue
fn from(obj: OesTextureFloat) -> JsValue
source§impl From<OesTextureFloatLinear> for JsValue
impl From<OesTextureFloatLinear> for JsValue
source§fn from(obj: OesTextureFloatLinear) -> JsValue
fn from(obj: OesTextureFloatLinear) -> JsValue
source§impl From<OesTextureHalfFloat> for JsValue
impl From<OesTextureHalfFloat> for JsValue
source§fn from(obj: OesTextureHalfFloat) -> JsValue
fn from(obj: OesTextureHalfFloat) -> JsValue
source§impl From<OesTextureHalfFloatLinear> for JsValue
impl From<OesTextureHalfFloatLinear> for JsValue
source§fn from(obj: OesTextureHalfFloatLinear) -> JsValue
fn from(obj: OesTextureHalfFloatLinear) -> JsValue
source§impl From<OesVertexArrayObject> for JsValue
impl From<OesVertexArrayObject> for JsValue
source§fn from(obj: OesVertexArrayObject) -> JsValue
fn from(obj: OesVertexArrayObject) -> JsValue
source§impl From<OffscreenCanvas> for JsValue
impl From<OffscreenCanvas> for JsValue
source§fn from(obj: OffscreenCanvas) -> JsValue
fn from(obj: OffscreenCanvas) -> JsValue
source§impl From<OvrMultiview2> for JsValue
impl From<OvrMultiview2> for JsValue
source§fn from(obj: OvrMultiview2) -> JsValue
fn from(obj: OvrMultiview2) -> JsValue
source§impl From<PluralRules> for JsValue
impl From<PluralRules> for JsValue
source§fn from(obj: PluralRules) -> JsValue
fn from(obj: PluralRules) -> JsValue
source§impl From<RangeError> for JsValue
impl From<RangeError> for JsValue
source§fn from(obj: RangeError) -> JsValue
fn from(obj: RangeError) -> JsValue
source§impl From<ReferenceError> for JsValue
impl From<ReferenceError> for JsValue
source§fn from(obj: ReferenceError) -> JsValue
fn from(obj: ReferenceError) -> JsValue
source§impl From<RelativeTimeFormat> for JsValue
impl From<RelativeTimeFormat> for JsValue
source§fn from(obj: RelativeTimeFormat) -> JsValue
fn from(obj: RelativeTimeFormat) -> JsValue
source§impl From<RuntimeError> for JsValue
impl From<RuntimeError> for JsValue
source§fn from(obj: RuntimeError) -> JsValue
fn from(obj: RuntimeError) -> JsValue
source§fn from(obj: SharedArrayBuffer) -> JsValue
fn from(obj: SharedArrayBuffer) -> JsValue
source§impl From<SyntaxError> for JsValue
impl From<SyntaxError> for JsValue
source§fn from(obj: SyntaxError) -> JsValue
fn from(obj: SyntaxError) -> JsValue
source§impl From<Uint16Array> for JsValue
impl From<Uint16Array> for JsValue
source§fn from(obj: Uint16Array) -> JsValue
fn from(obj: Uint16Array) -> JsValue
source§impl From<Uint32Array> for JsValue
impl From<Uint32Array> for JsValue
source§fn from(obj: Uint32Array) -> JsValue
fn from(obj: Uint32Array) -> JsValue
source§impl From<Uint8Array> for JsValue
impl From<Uint8Array> for JsValue
source§fn from(obj: Uint8Array) -> JsValue
fn from(obj: Uint8Array) -> JsValue
source§impl From<Uint8ClampedArray> for JsValue
impl From<Uint8ClampedArray> for JsValue
source§fn from(obj: Uint8ClampedArray) -> JsValue
fn from(obj: Uint8ClampedArray) -> JsValue
source§impl From<WebGl2RenderingContext> for JsValue
impl From<WebGl2RenderingContext> for JsValue
source§fn from(obj: WebGl2RenderingContext) -> JsValue
fn from(obj: WebGl2RenderingContext) -> JsValue
source§impl From<WebGlActiveInfo> for JsValue
impl From<WebGlActiveInfo> for JsValue
source§fn from(obj: WebGlActiveInfo) -> JsValue
fn from(obj: WebGlActiveInfo) -> JsValue
source§impl From<WebGlBuffer> for JsValue
impl From<WebGlBuffer> for JsValue
source§fn from(obj: WebGlBuffer) -> JsValue
fn from(obj: WebGlBuffer) -> JsValue
source§impl From<WebGlFramebuffer> for JsValue
impl From<WebGlFramebuffer> for JsValue
source§fn from(obj: WebGlFramebuffer) -> JsValue
fn from(obj: WebGlFramebuffer) -> JsValue
source§impl From<WebGlProgram> for JsValue
impl From<WebGlProgram> for JsValue
source§fn from(obj: WebGlProgram) -> JsValue
fn from(obj: WebGlProgram) -> JsValue
source§impl From<WebGlQuery> for JsValue
impl From<WebGlQuery> for JsValue
source§fn from(obj: WebGlQuery) -> JsValue
fn from(obj: WebGlQuery) -> JsValue
source§impl From<WebGlRenderbuffer> for JsValue
impl From<WebGlRenderbuffer> for JsValue
source§fn from(obj: WebGlRenderbuffer) -> JsValue
fn from(obj: WebGlRenderbuffer) -> JsValue
source§impl From<WebGlRenderingContext> for JsValue
impl From<WebGlRenderingContext> for JsValue
source§fn from(obj: WebGlRenderingContext) -> JsValue
fn from(obj: WebGlRenderingContext) -> JsValue
source§impl From<WebGlSampler> for JsValue
impl From<WebGlSampler> for JsValue
source§fn from(obj: WebGlSampler) -> JsValue
fn from(obj: WebGlSampler) -> JsValue
source§impl From<WebGlShader> for JsValue
impl From<WebGlShader> for JsValue
source§fn from(obj: WebGlShader) -> JsValue
fn from(obj: WebGlShader) -> JsValue
source§impl From<WebGlTexture> for JsValue
impl From<WebGlTexture> for JsValue
source§fn from(obj: WebGlTexture) -> JsValue
fn from(obj: WebGlTexture) -> JsValue
source§impl From<WebGlTransformFeedback> for JsValue
impl From<WebGlTransformFeedback> for JsValue
source§fn from(obj: WebGlTransformFeedback) -> JsValue
fn from(obj: WebGlTransformFeedback) -> JsValue
source§impl From<WebGlUniformLocation> for JsValue
impl From<WebGlUniformLocation> for JsValue
source§fn from(obj: WebGlUniformLocation) -> JsValue
fn from(obj: WebGlUniformLocation) -> JsValue
source§impl From<WebGlVertexArrayObject> for JsValue
impl From<WebGlVertexArrayObject> for JsValue
source§fn from(obj: WebGlVertexArrayObject) -> JsValue
fn from(obj: WebGlVertexArrayObject) -> JsValue
source§impl From<WebglColorBufferFloat> for JsValue
impl From<WebglColorBufferFloat> for JsValue
source§fn from(obj: WebglColorBufferFloat) -> JsValue
fn from(obj: WebglColorBufferFloat) -> JsValue
source§impl From<WebglCompressedTextureAstc> for JsValue
impl From<WebglCompressedTextureAstc> for JsValue
source§fn from(obj: WebglCompressedTextureAstc) -> JsValue
fn from(obj: WebglCompressedTextureAstc) -> JsValue
source§impl From<WebglCompressedTextureEtc> for JsValue
impl From<WebglCompressedTextureEtc> for JsValue
source§fn from(obj: WebglCompressedTextureEtc) -> JsValue
fn from(obj: WebglCompressedTextureEtc) -> JsValue
source§impl From<WebglCompressedTextureEtc1> for JsValue
impl From<WebglCompressedTextureEtc1> for JsValue
source§fn from(obj: WebglCompressedTextureEtc1) -> JsValue
fn from(obj: WebglCompressedTextureEtc1) -> JsValue
source§impl From<WebglCompressedTexturePvrtc> for JsValue
impl From<WebglCompressedTexturePvrtc> for JsValue
source§fn from(obj: WebglCompressedTexturePvrtc) -> JsValue
fn from(obj: WebglCompressedTexturePvrtc) -> JsValue
source§impl From<WebglCompressedTextureS3tc> for JsValue
impl From<WebglCompressedTextureS3tc> for JsValue
source§fn from(obj: WebglCompressedTextureS3tc) -> JsValue
fn from(obj: WebglCompressedTextureS3tc) -> JsValue
source§impl From<WebglCompressedTextureS3tcSrgb> for JsValue
impl From<WebglCompressedTextureS3tcSrgb> for JsValue
source§fn from(obj: WebglCompressedTextureS3tcSrgb) -> JsValue
fn from(obj: WebglCompressedTextureS3tcSrgb) -> JsValue
source§impl From<WebglDebugRendererInfo> for JsValue
impl From<WebglDebugRendererInfo> for JsValue
source§fn from(obj: WebglDebugRendererInfo) -> JsValue
fn from(obj: WebglDebugRendererInfo) -> JsValue
source§impl From<WebglDebugShaders> for JsValue
impl From<WebglDebugShaders> for JsValue
source§fn from(obj: WebglDebugShaders) -> JsValue
fn from(obj: WebglDebugShaders) -> JsValue
source§impl From<WebglDepthTexture> for JsValue
impl From<WebglDepthTexture> for JsValue
source§fn from(obj: WebglDepthTexture) -> JsValue
fn from(obj: WebglDepthTexture) -> JsValue
source§impl From<WebglDrawBuffers> for JsValue
impl From<WebglDrawBuffers> for JsValue
source§fn from(obj: WebglDrawBuffers) -> JsValue
fn from(obj: WebglDrawBuffers) -> JsValue
source§impl From<WebglLoseContext> for JsValue
impl From<WebglLoseContext> for JsValue
source§fn from(obj: WebglLoseContext) -> JsValue
fn from(obj: WebglLoseContext) -> JsValue
source§impl From<WorkerGlobalScope> for JsValue
impl From<WorkerGlobalScope> for JsValue
source§fn from(obj: WorkerGlobalScope) -> JsValue
fn from(obj: WorkerGlobalScope) -> JsValue
source§fn from(obj: WorkerNavigator) -> JsValue
fn from(obj: WorkerNavigator) -> JsValue
source§impl FromWasmAbi for JsValue
impl FromWasmAbi for JsValue
source§impl<'a> IntoWasmAbi for &'a JsValue
impl<'a> IntoWasmAbi for &'a JsValue
source§impl IntoWasmAbi for JsValue
impl IntoWasmAbi for JsValue
source§impl JsCast for JsValue
impl JsCast for JsValue
source§fn instanceof(_val: &JsValue) -> bool
fn instanceof(_val: &JsValue) -> bool
instanceof
check to see whether the JsValue
provided is an instance of this type. Read moresource§fn unchecked_from_js(val: JsValue) -> JsValue
fn unchecked_from_js(val: JsValue) -> JsValue
source§fn unchecked_from_js_ref(val: &JsValue) -> &JsValue
fn unchecked_from_js_ref(val: &JsValue) -> &JsValue
source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
T
. Read moresource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T
. Read moresource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T
. Read moresource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
source§impl LongRefFromWasmAbi for JsValue
impl LongRefFromWasmAbi for JsValue
source§impl<'a> PartialEq<&'a String> for JsValue
Available on crate feature std
only.
impl<'a> PartialEq<&'a String> for JsValue
std
only.source§impl<'a> PartialEq<&'a str> for JsValue
impl<'a> PartialEq<&'a str> for JsValue
source§impl PartialEq<String> for JsValue
Available on crate feature std
only.
impl PartialEq<String> for JsValue
std
only.source§impl PartialEq<bool> for JsValue
impl PartialEq<bool> for JsValue
source§impl PartialEq<i128> for JsValue
impl PartialEq<i128> for JsValue
source§impl PartialEq<isize> for JsValue
impl PartialEq<isize> for JsValue
source§impl PartialEq<u128> for JsValue
impl PartialEq<u128> for JsValue
source§impl PartialEq<usize> for JsValue
impl PartialEq<usize> for JsValue
source§impl PartialEq for JsValue
impl PartialEq for JsValue
source§impl RefFromWasmAbi for JsValue
impl RefFromWasmAbi for JsValue
§type Anchor = ManuallyDrop<JsValue>
type Anchor = ManuallyDrop<JsValue>
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
unsafe fn ref_from_abi(js: u32) -> <JsValue as RefFromWasmAbi>::Anchor
source§impl VectorFromWasmAbi for JsValue
Available on crate feature std
only.
impl VectorFromWasmAbi for JsValue
std
only.Auto Trait Implementations§
impl Freeze for JsValue
impl RefUnwindSafe for JsValue
impl !Send for JsValue
impl !Sync for JsValue
impl Unpin for JsValue
impl UnwindSafe for JsValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::Abi
source§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
.