Skip to main content

JsValue

Struct JsValue 

Source
pub struct JsValue { /* private fields */ }
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>

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_null_or_undefined(&self) -> bool

Tests whether this JS value is null or 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 for &JsValue

Source§

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

Applies the binary + JS operator on two JsValues.

MDN documentation

Source§

type Output = JsValue

The resulting type after applying the + operator.
Source§

impl Add for JsValue

Source§

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<&JsValue> for JsValue

Source§

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

Source§

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 AggregateError

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ErrorOptions

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 Array<T>

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 ArrayTuple<T>
where T: JsTuple,

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ArrayBufferOptions

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 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 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 Boolean

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 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<T> AsRef<JsValue> for Function<T>
where T: JsFunction,

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for FinalizationRegistry

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 Generator<T>

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 AsyncGenerator<T>

Source§

fn as_ref(&self) -> &JsValue

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

impl<K, V> AsRef<JsValue> for Map<K, V>

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 Iterator<T>

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 AsyncIterator<T>

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 IteratorNext<T>

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 Date

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 PropertyDescriptor<T>

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 Object<T>

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 RegExpMatchArray

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 Set<T>

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 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 UriError

Source§

fn as_ref(&self) -> &JsValue

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

impl<K, V> AsRef<JsValue> for WeakMap<K, V>

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 WeakSet<T>

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 WeakRef<T>

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 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 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 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 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 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 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 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 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 Suspending

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 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 RelativeTimeFormatOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResolvedRelativeTimeFormatOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for RelativeTimeFormatPart

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for LocaleMatcherOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CollatorOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResolvedCollatorOptions

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 DateTimeFormatOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResolvedDateTimeFormatOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DateTimeFormatPart

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DateTimeRangeFormatPart

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 NumberFormatOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResolvedNumberFormatOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for NumberFormatPart

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for NumberRangeFormatPart

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 PluralRulesOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResolvedPluralRulesOptions

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 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 ListFormatOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResolvedListFormatOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ListFormatPart

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ListFormat

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SegmenterOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResolvedSegmenterOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SegmentData

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Segments

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Segmenter

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DisplayNamesOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResolvedDisplayNamesOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DisplayNames

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Locale

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for WeekInfo

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for TextInfo

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DurationFormatOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResolvedDurationFormatOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Duration

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DurationFormatPart

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DurationFormat

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 PromiseState<T>

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 Promise<T>

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Float16Array

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 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 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 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 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 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<T> AsRef<JsValue> for ScopedClosure<'_, 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 Undefined

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Null

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 JsOption<T>

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 JsNullable<T>

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 AnimationEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AudioBuffer

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AudioBufferSourceNode

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AudioContext

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AudioDestinationNode

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AudioListener

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AudioNode

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AudioParam

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for AudioScheduledSourceNode

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for BaseAudioContext

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for BeforeUnloadEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Blob

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CanvasGradient

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CanvasRenderingContext2d

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CharacterData

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Clipboard

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ClipboardEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for CssStyleDeclaration

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DataTransfer

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 DocumentFragment

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DomRect

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DomRectReadOnly

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for DragEvent

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 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 EventInit

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for EventSource

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 File

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for FileList

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for FileReader

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for FocusEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for GainNode

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Gamepad

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for GamepadButton

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for GamepadEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for HashChangeEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for History

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for HtmlButtonElement

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 HtmlCollection

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 HtmlFormElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for HtmlHeadElement

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 HtmlInputElement

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 HtmlMetaElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for HtmlOptionElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for HtmlSelectElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for HtmlStyleElement

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for HtmlTextAreaElement

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 ImageData

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for InputEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for IntersectionObserver

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for IntersectionObserverEntry

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for IntersectionObserverInit

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for KeyboardEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Location

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MediaDevices

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MediaQueryList

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MediaStream

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MediaStreamConstraints

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MediaStreamTrack

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MessageEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for MouseEvent

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 Performance

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResizeObserver

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ResizeObserverEntry

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Response

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for ScrollIntoViewOptions

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Storage

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for SubmitEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Text

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for Touch

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for TouchEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for TouchList

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for TransitionEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for UiEvent

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for VisualViewport

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 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 WebGlContextAttributes

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 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 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 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 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 WebSocket

Source§

fn as_ref(&self) -> &JsValue

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

impl AsRef<JsValue> for WheelEvent

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 AsyncIterable for JsValue

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

Source§

type Output = JsValue

The resulting type after applying the & operator.
Source§

impl BitAnd for JsValue

Source§

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<&JsValue> for JsValue

Source§

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

Source§

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 for &JsValue

Source§

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

Applies the binary | JS operator on two JsValues.

MDN documentation

Source§

type Output = JsValue

The resulting type after applying the | operator.
Source§

impl BitOr for JsValue

Source§

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<&JsValue> for JsValue

Source§

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

Source§

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 for &JsValue

Source§

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

Applies the binary ^ JS operator on two JsValues.

MDN documentation

Source§

type Output = JsValue

The resulting type after applying the ^ operator.
Source§

impl BitXor for JsValue

Source§

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<&JsValue> for JsValue

Source§

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

Source§

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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for JsValue

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 for &JsValue

Source§

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

Applies the binary / JS operator on two JsValues.

MDN documentation

Source§

type Output = JsValue

The resulting type after applying the / operator.
Source§

impl Div for JsValue

Source§

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<&JsValue> for JsValue

Source§

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

Source§

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§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more
Source§

impl ErasableGeneric for JsValue

Source§

type Repr = JsValue

The singular concrete type that all generic variants can be transmuted on
Source§

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

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<AggregateError> for JsValue

Source§

fn from(obj: AggregateError) -> JsValue

Converts to this type from the input type.
Source§

impl From<AnimationEvent> for JsValue

Source§

fn from(obj: AnimationEvent) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<Array<T>> for JsValue

Source§

fn from(obj: Array<T>) -> 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<ArrayBufferOptions> for JsValue

Source§

fn from(obj: ArrayBufferOptions) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<ArrayTuple<T>> for JsValue
where T: JsTuple,

Source§

fn from(obj: ArrayTuple<T>) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<AsyncGenerator<T>> for JsValue

Source§

fn from(obj: AsyncGenerator<T>) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<AsyncIterator<T>> for JsValue

Source§

fn from(obj: AsyncIterator<T>) -> JsValue

Converts to this type from the input type.
Source§

impl From<AudioBuffer> for JsValue

Source§

fn from(obj: AudioBuffer) -> JsValue

Converts to this type from the input type.
Source§

impl From<AudioBufferSourceNode> for JsValue

Source§

fn from(obj: AudioBufferSourceNode) -> JsValue

Converts to this type from the input type.
Source§

impl From<AudioContext> for JsValue

Source§

fn from(obj: AudioContext) -> JsValue

Converts to this type from the input type.
Source§

impl From<AudioDestinationNode> for JsValue

Source§

fn from(obj: AudioDestinationNode) -> JsValue

Converts to this type from the input type.
Source§

impl From<AudioListener> for JsValue

Source§

fn from(obj: AudioListener) -> JsValue

Converts to this type from the input type.
Source§

impl From<AudioNode> for JsValue

Source§

fn from(obj: AudioNode) -> JsValue

Converts to this type from the input type.
Source§

impl From<AudioParam> for JsValue

Source§

fn from(obj: AudioParam) -> JsValue

Converts to this type from the input type.
Source§

impl From<AudioScheduledSourceNode> for JsValue

Source§

fn from(obj: AudioScheduledSourceNode) -> JsValue

Converts to this type from the input type.
Source§

impl From<BaseAudioContext> for JsValue

Source§

fn from(obj: BaseAudioContext) -> JsValue

Converts to this type from the input type.
Source§

impl From<BeforeUnloadEvent> for JsValue

Source§

fn from(obj: BeforeUnloadEvent) -> 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<BigInt> for JsValue

Source§

fn from(obj: BigInt) -> 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<Blob> for JsValue

Source§

fn from(obj: Blob) -> 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<T> From<Box<[T]>> for JsValue

Source§

fn from(vector: Box<[T]>) -> JsValue

Converts to this type from the input type.
Source§

impl From<CanvasGradient> for JsValue

Source§

fn from(obj: CanvasGradient) -> JsValue

Converts to this type from the input type.
Source§

impl From<CanvasRenderingContext2d> for JsValue

Source§

fn from(obj: CanvasRenderingContext2d) -> JsValue

Converts to this type from the input type.
Source§

impl From<CharacterData> for JsValue

Source§

fn from(obj: CharacterData) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<Clamped<Box<[T]>>> for JsValue

Source§

fn from(vector: Clamped<Box<[T]>>) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<Clamped<Vec<T>>> for JsValue

Source§

fn from(vector: Clamped<Vec<T>>) -> JsValue

Converts to this type from the input type.
Source§

impl From<Clipboard> for JsValue

Source§

fn from(obj: Clipboard) -> JsValue

Converts to this type from the input type.
Source§

impl From<ClipboardEvent> for JsValue

Source§

fn from(obj: ClipboardEvent) -> 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<CollatorCaseFirst> for JsValue

Source§

fn from(val: CollatorCaseFirst) -> JsValue

Converts to this type from the input type.
Source§

impl From<CollatorOptions> for JsValue

Source§

fn from(obj: CollatorOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<CollatorSensitivity> for JsValue

Source§

fn from(val: CollatorSensitivity) -> JsValue

Converts to this type from the input type.
Source§

impl From<CollatorUsage> for JsValue

Source§

fn from(val: CollatorUsage) -> JsValue

Converts to this type from the input type.
Source§

impl From<CompactDisplay> for JsValue

Source§

fn from(val: CompactDisplay) -> 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<ConsoleTask> for JsValue

Source§

fn from(obj: ConsoleTask) -> JsValue

Converts to this type from the input type.
Source§

impl From<CssStyleDeclaration> for JsValue

Source§

fn from(obj: CssStyleDeclaration) -> JsValue

Converts to this type from the input type.
Source§

impl From<CurrencyDisplay> for JsValue

Source§

fn from(val: CurrencyDisplay) -> JsValue

Converts to this type from the input type.
Source§

impl From<CurrencySign> for JsValue

Source§

fn from(val: CurrencySign) -> JsValue

Converts to this type from the input type.
Source§

impl From<DataTransfer> for JsValue

Source§

fn from(obj: DataTransfer) -> 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<DateTimeFormatOptions> for JsValue

Source§

fn from(obj: DateTimeFormatOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<DateTimeFormatPart> for JsValue

Source§

fn from(obj: DateTimeFormatPart) -> JsValue

Converts to this type from the input type.
Source§

impl From<DateTimeFormatPartType> for JsValue

Source§

fn from(val: DateTimeFormatPartType) -> JsValue

Converts to this type from the input type.
Source§

impl From<DateTimeRangeFormatPart> for JsValue

Source§

fn from(obj: DateTimeRangeFormatPart) -> JsValue

Converts to this type from the input type.
Source§

impl From<DateTimeStyle> for JsValue

Source§

fn from(val: DateTimeStyle) -> JsValue

Converts to this type from the input type.
Source§

impl From<DayFormat> for JsValue

Source§

fn from(val: DayFormat) -> JsValue

Converts to this type from the input type.
Source§

impl From<DayPeriodFormat> for JsValue

Source§

fn from(val: DayPeriodFormat) -> JsValue

Converts to this type from the input type.
Source§

impl From<DisplayNames> for JsValue

Source§

fn from(obj: DisplayNames) -> JsValue

Converts to this type from the input type.
Source§

impl From<DisplayNamesFallback> for JsValue

Source§

fn from(val: DisplayNamesFallback) -> JsValue

Converts to this type from the input type.
Source§

impl From<DisplayNamesLanguageDisplay> for JsValue

Source§

fn from(val: DisplayNamesLanguageDisplay) -> JsValue

Converts to this type from the input type.
Source§

impl From<DisplayNamesOptions> for JsValue

Source§

fn from(obj: DisplayNamesOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<DisplayNamesStyle> for JsValue

Source§

fn from(val: DisplayNamesStyle) -> JsValue

Converts to this type from the input type.
Source§

impl From<DisplayNamesType> for JsValue

Source§

fn from(val: DisplayNamesType) -> 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<DocumentFragment> for JsValue

Source§

fn from(obj: DocumentFragment) -> JsValue

Converts to this type from the input type.
Source§

impl From<DomRect> for JsValue

Source§

fn from(obj: DomRect) -> JsValue

Converts to this type from the input type.
Source§

impl From<DomRectReadOnly> for JsValue

Source§

fn from(obj: DomRectReadOnly) -> JsValue

Converts to this type from the input type.
Source§

impl From<DragEvent> for JsValue

Source§

fn from(obj: DragEvent) -> JsValue

Converts to this type from the input type.
Source§

impl From<Duration> for JsValue

Source§

fn from(obj: Duration) -> JsValue

Converts to this type from the input type.
Source§

impl From<DurationFormat> for JsValue

Source§

fn from(obj: DurationFormat) -> JsValue

Converts to this type from the input type.
Source§

impl From<DurationFormatOptions> for JsValue

Source§

fn from(obj: DurationFormatOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<DurationFormatPart> for JsValue

Source§

fn from(obj: DurationFormatPart) -> JsValue

Converts to this type from the input type.
Source§

impl From<DurationFormatPartType> for JsValue

Source§

fn from(val: DurationFormatPartType) -> JsValue

Converts to this type from the input type.
Source§

impl From<DurationFormatStyle> for JsValue

Source§

fn from(val: DurationFormatStyle) -> JsValue

Converts to this type from the input type.
Source§

impl From<DurationTimeUnitStyle> for JsValue

Source§

fn from(val: DurationTimeUnitStyle) -> JsValue

Converts to this type from the input type.
Source§

impl From<DurationUnitDisplay> for JsValue

Source§

fn from(val: DurationUnitDisplay) -> JsValue

Converts to this type from the input type.
Source§

impl From<DurationUnitStyle> for JsValue

Source§

fn from(val: DurationUnitStyle) -> 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<EraFormat> for JsValue

Source§

fn from(val: EraFormat) -> 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<ErrorOptions> for JsValue

Source§

fn from(obj: ErrorOptions) -> 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<EventInit> for JsValue

Source§

fn from(obj: EventInit) -> JsValue

Converts to this type from the input type.
Source§

impl From<EventSource> for JsValue

Source§

fn from(obj: EventSource) -> 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<File> for JsValue

Source§

fn from(obj: File) -> JsValue

Converts to this type from the input type.
Source§

impl From<FileList> for JsValue

Source§

fn from(obj: FileList) -> JsValue

Converts to this type from the input type.
Source§

impl From<FileReader> for JsValue

Source§

fn from(obj: FileReader) -> JsValue

Converts to this type from the input type.
Source§

impl From<FinalizationRegistry> for JsValue

Source§

fn from(obj: FinalizationRegistry) -> JsValue

Converts to this type from the input type.
Source§

impl From<Float16Array> for JsValue

Source§

fn from(obj: Float16Array) -> 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<FocusEvent> for JsValue

Source§

fn from(obj: FocusEvent) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<Function<T>> for JsValue
where T: JsFunction,

Source§

fn from(obj: Function<T>) -> JsValue

Converts to this type from the input type.
Source§

impl From<GainNode> for JsValue

Source§

fn from(obj: GainNode) -> JsValue

Converts to this type from the input type.
Source§

impl From<Gamepad> for JsValue

Source§

fn from(obj: Gamepad) -> JsValue

Converts to this type from the input type.
Source§

impl From<GamepadButton> for JsValue

Source§

fn from(obj: GamepadButton) -> JsValue

Converts to this type from the input type.
Source§

impl From<GamepadEvent> for JsValue

Source§

fn from(obj: GamepadEvent) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<Generator<T>> for JsValue

Source§

fn from(obj: Generator<T>) -> 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<HashChangeEvent> for JsValue

Source§

fn from(obj: HashChangeEvent) -> JsValue

Converts to this type from the input type.
Source§

impl From<History> for JsValue

Source§

fn from(obj: History) -> JsValue

Converts to this type from the input type.
Source§

impl From<HourCycle> for JsValue

Source§

fn from(val: HourCycle) -> JsValue

Converts to this type from the input type.
Source§

impl From<HtmlButtonElement> for JsValue

Source§

fn from(obj: HtmlButtonElement) -> 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<HtmlCollection> for JsValue

Source§

fn from(obj: HtmlCollection) -> 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<HtmlFormElement> for JsValue

Source§

fn from(obj: HtmlFormElement) -> JsValue

Converts to this type from the input type.
Source§

impl From<HtmlHeadElement> for JsValue

Source§

fn from(obj: HtmlHeadElement) -> 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<HtmlInputElement> for JsValue

Source§

fn from(obj: HtmlInputElement) -> 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<HtmlMetaElement> for JsValue

Source§

fn from(obj: HtmlMetaElement) -> JsValue

Converts to this type from the input type.
Source§

impl From<HtmlOptionElement> for JsValue

Source§

fn from(obj: HtmlOptionElement) -> JsValue

Converts to this type from the input type.
Source§

impl From<HtmlSelectElement> for JsValue

Source§

fn from(obj: HtmlSelectElement) -> JsValue

Converts to this type from the input type.
Source§

impl From<HtmlStyleElement> for JsValue

Source§

fn from(obj: HtmlStyleElement) -> JsValue

Converts to this type from the input type.
Source§

impl From<HtmlTextAreaElement> for JsValue

Source§

fn from(obj: HtmlTextAreaElement) -> 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<ImageData> for JsValue

Source§

fn from(obj: ImageData) -> JsValue

Converts to this type from the input type.
Source§

impl From<InputEvent> for JsValue

Source§

fn from(obj: InputEvent) -> 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<Int8Array> for JsValue

Source§

fn from(obj: Int8Array) -> 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<IntersectionObserver> for JsValue

Source§

fn from(obj: IntersectionObserver) -> JsValue

Converts to this type from the input type.
Source§

impl From<IntersectionObserverEntry> for JsValue

Source§

fn from(obj: IntersectionObserverEntry) -> JsValue

Converts to this type from the input type.
Source§

impl From<IntersectionObserverInit> for JsValue

Source§

fn from(obj: IntersectionObserverInit) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<Iterator<T>> for JsValue

Source§

fn from(obj: Iterator<T>) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<IteratorNext<T>> for JsValue

Source§

fn from(obj: IteratorNext<T>) -> JsValue

Converts to this type from the input type.
Source§

impl From<JsClosure> for JsValue

Source§

fn from(obj: JsClosure) -> 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<T> From<JsNullable<T>> for JsValue

Source§

fn from(obj: JsNullable<T>) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<JsOption<T>> for JsValue

Source§

fn from(obj: JsOption<T>) -> 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 AggregateError

Source§

fn from(obj: JsValue) -> AggregateError

Converts to this type from the input type.
Source§

impl From<JsValue> for ErrorOptions

Source§

fn from(obj: JsValue) -> ErrorOptions

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 ArrayTuple

Source§

fn from(obj: JsValue) -> ArrayTuple

Converts to this type from the input type.
Source§

impl From<JsValue> for ArrayBufferOptions

Source§

fn from(obj: JsValue) -> ArrayBufferOptions

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 SharedArrayBuffer

Source§

fn from(obj: JsValue) -> SharedArrayBuffer

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 Boolean

Source§

fn from(obj: JsValue) -> Boolean

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 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 Function

Source§

fn from(obj: JsValue) -> Function

Converts to this type from the input type.
Source§

impl From<JsValue> for FinalizationRegistry

Source§

fn from(obj: JsValue) -> FinalizationRegistry

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 AsyncGenerator

Source§

fn from(obj: JsValue) -> AsyncGenerator

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 Iterator

Source§

fn from(obj: JsValue) -> Iterator

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 IteratorNext

Source§

fn from(obj: JsValue) -> IteratorNext

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 Date

Source§

fn from(obj: JsValue) -> Date

Converts to this type from the input type.
Source§

impl From<JsValue> for PropertyDescriptor

Source§

fn from(obj: JsValue) -> PropertyDescriptor

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 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 RegExpMatchArray

Source§

fn from(obj: JsValue) -> RegExpMatchArray

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 SyntaxError

Source§

fn from(obj: JsValue) -> SyntaxError

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 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 WeakRef

Source§

fn from(obj: JsValue) -> WeakRef

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 Instance

Source§

fn from(obj: JsValue) -> Instance

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 RuntimeError

Source§

fn from(obj: JsValue) -> RuntimeError

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 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 Exception

Source§

fn from(obj: JsValue) -> Exception

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 Memory

Source§

fn from(obj: JsValue) -> Memory

Converts to this type from the input type.
Source§

impl From<JsValue> for Suspending

Source§

fn from(obj: JsValue) -> Suspending

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 Symbol

Source§

fn from(obj: JsValue) -> Symbol

Converts to this type from the input type.
Source§

impl From<JsValue> for RelativeTimeFormatOptions

Source§

fn from(obj: JsValue) -> RelativeTimeFormatOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for ResolvedRelativeTimeFormatOptions

Source§

fn from(obj: JsValue) -> ResolvedRelativeTimeFormatOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for RelativeTimeFormatPart

Source§

fn from(obj: JsValue) -> RelativeTimeFormatPart

Converts to this type from the input type.
Source§

impl From<JsValue> for LocaleMatcherOptions

Source§

fn from(obj: JsValue) -> LocaleMatcherOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for CollatorOptions

Source§

fn from(obj: JsValue) -> CollatorOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for ResolvedCollatorOptions

Source§

fn from(obj: JsValue) -> ResolvedCollatorOptions

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 DateTimeFormatOptions

Source§

fn from(obj: JsValue) -> DateTimeFormatOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for ResolvedDateTimeFormatOptions

Source§

fn from(obj: JsValue) -> ResolvedDateTimeFormatOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for DateTimeFormatPart

Source§

fn from(obj: JsValue) -> DateTimeFormatPart

Converts to this type from the input type.
Source§

impl From<JsValue> for DateTimeRangeFormatPart

Source§

fn from(obj: JsValue) -> DateTimeRangeFormatPart

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 NumberFormatOptions

Source§

fn from(obj: JsValue) -> NumberFormatOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for ResolvedNumberFormatOptions

Source§

fn from(obj: JsValue) -> ResolvedNumberFormatOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for NumberFormatPart

Source§

fn from(obj: JsValue) -> NumberFormatPart

Converts to this type from the input type.
Source§

impl From<JsValue> for NumberRangeFormatPart

Source§

fn from(obj: JsValue) -> NumberRangeFormatPart

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 PluralRulesOptions

Source§

fn from(obj: JsValue) -> PluralRulesOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for ResolvedPluralRulesOptions

Source§

fn from(obj: JsValue) -> ResolvedPluralRulesOptions

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 RelativeTimeFormat

Source§

fn from(obj: JsValue) -> RelativeTimeFormat

Converts to this type from the input type.
Source§

impl From<JsValue> for ListFormatOptions

Source§

fn from(obj: JsValue) -> ListFormatOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for ResolvedListFormatOptions

Source§

fn from(obj: JsValue) -> ResolvedListFormatOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for ListFormatPart

Source§

fn from(obj: JsValue) -> ListFormatPart

Converts to this type from the input type.
Source§

impl From<JsValue> for ListFormat

Source§

fn from(obj: JsValue) -> ListFormat

Converts to this type from the input type.
Source§

impl From<JsValue> for SegmenterOptions

Source§

fn from(obj: JsValue) -> SegmenterOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for ResolvedSegmenterOptions

Source§

fn from(obj: JsValue) -> ResolvedSegmenterOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for SegmentData

Source§

fn from(obj: JsValue) -> SegmentData

Converts to this type from the input type.
Source§

impl From<JsValue> for Segments

Source§

fn from(obj: JsValue) -> Segments

Converts to this type from the input type.
Source§

impl From<JsValue> for Segmenter

Source§

fn from(obj: JsValue) -> Segmenter

Converts to this type from the input type.
Source§

impl From<JsValue> for DisplayNamesOptions

Source§

fn from(obj: JsValue) -> DisplayNamesOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for ResolvedDisplayNamesOptions

Source§

fn from(obj: JsValue) -> ResolvedDisplayNamesOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for DisplayNames

Source§

fn from(obj: JsValue) -> DisplayNames

Converts to this type from the input type.
Source§

impl From<JsValue> for Locale

Source§

fn from(obj: JsValue) -> Locale

Converts to this type from the input type.
Source§

impl From<JsValue> for WeekInfo

Source§

fn from(obj: JsValue) -> WeekInfo

Converts to this type from the input type.
Source§

impl From<JsValue> for TextInfo

Source§

fn from(obj: JsValue) -> TextInfo

Converts to this type from the input type.
Source§

impl From<JsValue> for DurationFormatOptions

Source§

fn from(obj: JsValue) -> DurationFormatOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for ResolvedDurationFormatOptions

Source§

fn from(obj: JsValue) -> ResolvedDurationFormatOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for Duration

Source§

fn from(obj: JsValue) -> Duration

Converts to this type from the input type.
Source§

impl From<JsValue> for DurationFormatPart

Source§

fn from(obj: JsValue) -> DurationFormatPart

Converts to this type from the input type.
Source§

impl From<JsValue> for DurationFormat

Source§

fn from(obj: JsValue) -> DurationFormat

Converts to this type from the input type.
Source§

impl From<JsValue> for PromiseState

Source§

fn from(obj: JsValue) -> PromiseState

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 Float16Array

Source§

fn from(obj: JsValue) -> Float16Array

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 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 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 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 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 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 Undefined

Source§

fn from(obj: JsValue) -> Undefined

Converts to this type from the input type.
Source§

impl From<JsValue> for Null

Source§

fn from(obj: JsValue) -> Null

Converts to this type from the input type.
Source§

impl From<JsValue> for JsOption

Source§

fn from(obj: JsValue) -> JsOption

Converts to this type from the input type.
Source§

impl From<JsValue> for JsNullable

Source§

fn from(obj: JsValue) -> JsNullable

Converts to this type from the input type.
Source§

impl From<JsValue> for AnimationEvent

Source§

fn from(obj: JsValue) -> AnimationEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for AudioBuffer

Source§

fn from(obj: JsValue) -> AudioBuffer

Converts to this type from the input type.
Source§

impl From<JsValue> for AudioBufferSourceNode

Source§

fn from(obj: JsValue) -> AudioBufferSourceNode

Converts to this type from the input type.
Source§

impl From<JsValue> for AudioContext

Source§

fn from(obj: JsValue) -> AudioContext

Converts to this type from the input type.
Source§

impl From<JsValue> for AudioDestinationNode

Source§

fn from(obj: JsValue) -> AudioDestinationNode

Converts to this type from the input type.
Source§

impl From<JsValue> for AudioListener

Source§

fn from(obj: JsValue) -> AudioListener

Converts to this type from the input type.
Source§

impl From<JsValue> for AudioNode

Source§

fn from(obj: JsValue) -> AudioNode

Converts to this type from the input type.
Source§

impl From<JsValue> for AudioParam

Source§

fn from(obj: JsValue) -> AudioParam

Converts to this type from the input type.
Source§

impl From<JsValue> for AudioScheduledSourceNode

Source§

fn from(obj: JsValue) -> AudioScheduledSourceNode

Converts to this type from the input type.
Source§

impl From<JsValue> for BaseAudioContext

Source§

fn from(obj: JsValue) -> BaseAudioContext

Converts to this type from the input type.
Source§

impl From<JsValue> for BeforeUnloadEvent

Source§

fn from(obj: JsValue) -> BeforeUnloadEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for Blob

Source§

fn from(obj: JsValue) -> Blob

Converts to this type from the input type.
Source§

impl From<JsValue> for CanvasGradient

Source§

fn from(obj: JsValue) -> CanvasGradient

Converts to this type from the input type.
Source§

impl From<JsValue> for CanvasRenderingContext2d

Source§

fn from(obj: JsValue) -> CanvasRenderingContext2d

Converts to this type from the input type.
Source§

impl From<JsValue> for CharacterData

Source§

fn from(obj: JsValue) -> CharacterData

Converts to this type from the input type.
Source§

impl From<JsValue> for Clipboard

Source§

fn from(obj: JsValue) -> Clipboard

Converts to this type from the input type.
Source§

impl From<JsValue> for ClipboardEvent

Source§

fn from(obj: JsValue) -> ClipboardEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for CssStyleDeclaration

Source§

fn from(obj: JsValue) -> CssStyleDeclaration

Converts to this type from the input type.
Source§

impl From<JsValue> for DataTransfer

Source§

fn from(obj: JsValue) -> DataTransfer

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 DocumentFragment

Source§

fn from(obj: JsValue) -> DocumentFragment

Converts to this type from the input type.
Source§

impl From<JsValue> for DomRect

Source§

fn from(obj: JsValue) -> DomRect

Converts to this type from the input type.
Source§

impl From<JsValue> for DomRectReadOnly

Source§

fn from(obj: JsValue) -> DomRectReadOnly

Converts to this type from the input type.
Source§

impl From<JsValue> for DragEvent

Source§

fn from(obj: JsValue) -> DragEvent

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 Event

Source§

fn from(obj: JsValue) -> Event

Converts to this type from the input type.
Source§

impl From<JsValue> for EventInit

Source§

fn from(obj: JsValue) -> EventInit

Converts to this type from the input type.
Source§

impl From<JsValue> for EventSource

Source§

fn from(obj: JsValue) -> EventSource

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 File

Source§

fn from(obj: JsValue) -> File

Converts to this type from the input type.
Source§

impl From<JsValue> for FileList

Source§

fn from(obj: JsValue) -> FileList

Converts to this type from the input type.
Source§

impl From<JsValue> for FileReader

Source§

fn from(obj: JsValue) -> FileReader

Converts to this type from the input type.
Source§

impl From<JsValue> for FocusEvent

Source§

fn from(obj: JsValue) -> FocusEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for GainNode

Source§

fn from(obj: JsValue) -> GainNode

Converts to this type from the input type.
Source§

impl From<JsValue> for Gamepad

Source§

fn from(obj: JsValue) -> Gamepad

Converts to this type from the input type.
Source§

impl From<JsValue> for GamepadButton

Source§

fn from(obj: JsValue) -> GamepadButton

Converts to this type from the input type.
Source§

impl From<JsValue> for GamepadEvent

Source§

fn from(obj: JsValue) -> GamepadEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for HashChangeEvent

Source§

fn from(obj: JsValue) -> HashChangeEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for History

Source§

fn from(obj: JsValue) -> History

Converts to this type from the input type.
Source§

impl From<JsValue> for HtmlButtonElement

Source§

fn from(obj: JsValue) -> HtmlButtonElement

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 HtmlCollection

Source§

fn from(obj: JsValue) -> HtmlCollection

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 HtmlFormElement

Source§

fn from(obj: JsValue) -> HtmlFormElement

Converts to this type from the input type.
Source§

impl From<JsValue> for HtmlHeadElement

Source§

fn from(obj: JsValue) -> HtmlHeadElement

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 HtmlInputElement

Source§

fn from(obj: JsValue) -> HtmlInputElement

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 HtmlMetaElement

Source§

fn from(obj: JsValue) -> HtmlMetaElement

Converts to this type from the input type.
Source§

impl From<JsValue> for HtmlOptionElement

Source§

fn from(obj: JsValue) -> HtmlOptionElement

Converts to this type from the input type.
Source§

impl From<JsValue> for HtmlSelectElement

Source§

fn from(obj: JsValue) -> HtmlSelectElement

Converts to this type from the input type.
Source§

impl From<JsValue> for HtmlStyleElement

Source§

fn from(obj: JsValue) -> HtmlStyleElement

Converts to this type from the input type.
Source§

impl From<JsValue> for HtmlTextAreaElement

Source§

fn from(obj: JsValue) -> HtmlTextAreaElement

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 ImageData

Source§

fn from(obj: JsValue) -> ImageData

Converts to this type from the input type.
Source§

impl From<JsValue> for InputEvent

Source§

fn from(obj: JsValue) -> InputEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for IntersectionObserver

Source§

fn from(obj: JsValue) -> IntersectionObserver

Converts to this type from the input type.
Source§

impl From<JsValue> for IntersectionObserverEntry

Source§

fn from(obj: JsValue) -> IntersectionObserverEntry

Converts to this type from the input type.
Source§

impl From<JsValue> for IntersectionObserverInit

Source§

fn from(obj: JsValue) -> IntersectionObserverInit

Converts to this type from the input type.
Source§

impl From<JsValue> for KeyboardEvent

Source§

fn from(obj: JsValue) -> KeyboardEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for Location

Source§

fn from(obj: JsValue) -> Location

Converts to this type from the input type.
Source§

impl From<JsValue> for MediaDevices

Source§

fn from(obj: JsValue) -> MediaDevices

Converts to this type from the input type.
Source§

impl From<JsValue> for MediaQueryList

Source§

fn from(obj: JsValue) -> MediaQueryList

Converts to this type from the input type.
Source§

impl From<JsValue> for MediaStream

Source§

fn from(obj: JsValue) -> MediaStream

Converts to this type from the input type.
Source§

impl From<JsValue> for MediaStreamConstraints

Source§

fn from(obj: JsValue) -> MediaStreamConstraints

Converts to this type from the input type.
Source§

impl From<JsValue> for MediaStreamTrack

Source§

fn from(obj: JsValue) -> MediaStreamTrack

Converts to this type from the input type.
Source§

impl From<JsValue> for MessageEvent

Source§

fn from(obj: JsValue) -> MessageEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for MouseEvent

Source§

fn from(obj: JsValue) -> MouseEvent

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 Performance

Source§

fn from(obj: JsValue) -> Performance

Converts to this type from the input type.
Source§

impl From<JsValue> for ResizeObserver

Source§

fn from(obj: JsValue) -> ResizeObserver

Converts to this type from the input type.
Source§

impl From<JsValue> for ResizeObserverEntry

Source§

fn from(obj: JsValue) -> ResizeObserverEntry

Converts to this type from the input type.
Source§

impl From<JsValue> for Response

Source§

fn from(obj: JsValue) -> Response

Converts to this type from the input type.
Source§

impl From<JsValue> for ScrollIntoViewOptions

Source§

fn from(obj: JsValue) -> ScrollIntoViewOptions

Converts to this type from the input type.
Source§

impl From<JsValue> for Storage

Source§

fn from(obj: JsValue) -> Storage

Converts to this type from the input type.
Source§

impl From<JsValue> for SubmitEvent

Source§

fn from(obj: JsValue) -> SubmitEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for Text

Source§

fn from(obj: JsValue) -> Text

Converts to this type from the input type.
Source§

impl From<JsValue> for Touch

Source§

fn from(obj: JsValue) -> Touch

Converts to this type from the input type.
Source§

impl From<JsValue> for TouchEvent

Source§

fn from(obj: JsValue) -> TouchEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for TouchList

Source§

fn from(obj: JsValue) -> TouchList

Converts to this type from the input type.
Source§

impl From<JsValue> for TransitionEvent

Source§

fn from(obj: JsValue) -> TransitionEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for UiEvent

Source§

fn from(obj: JsValue) -> UiEvent

Converts to this type from the input type.
Source§

impl From<JsValue> for VisualViewport

Source§

fn from(obj: JsValue) -> VisualViewport

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 WebGlBuffer

Source§

fn from(obj: JsValue) -> WebGlBuffer

Converts to this type from the input type.
Source§

impl From<JsValue> for WebGlContextAttributes

Source§

fn from(obj: JsValue) -> WebGlContextAttributes

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 WebGlRenderbuffer

Source§

fn from(obj: JsValue) -> WebGlRenderbuffer

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 WebGlTexture

Source§

fn from(obj: JsValue) -> WebGlTexture

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 WebSocket

Source§

fn from(obj: JsValue) -> WebSocket

Converts to this type from the input type.
Source§

impl From<JsValue> for WheelEvent

Source§

fn from(obj: JsValue) -> WheelEvent

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<KeyboardEvent> for JsValue

Source§

fn from(obj: KeyboardEvent) -> JsValue

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<ListFormat> for JsValue

Source§

fn from(obj: ListFormat) -> JsValue

Converts to this type from the input type.
Source§

impl From<ListFormatOptions> for JsValue

Source§

fn from(obj: ListFormatOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<ListFormatPart> for JsValue

Source§

fn from(obj: ListFormatPart) -> JsValue

Converts to this type from the input type.
Source§

impl From<ListFormatPartType> for JsValue

Source§

fn from(val: ListFormatPartType) -> JsValue

Converts to this type from the input type.
Source§

impl From<ListFormatStyle> for JsValue

Source§

fn from(val: ListFormatStyle) -> JsValue

Converts to this type from the input type.
Source§

impl From<ListFormatType> for JsValue

Source§

fn from(val: ListFormatType) -> JsValue

Converts to this type from the input type.
Source§

impl From<Locale> for JsValue

Source§

fn from(obj: Locale) -> JsValue

Converts to this type from the input type.
Source§

impl From<LocaleMatcher> for JsValue

Source§

fn from(val: LocaleMatcher) -> JsValue

Converts to this type from the input type.
Source§

impl From<LocaleMatcherOptions> for JsValue

Source§

fn from(obj: LocaleMatcherOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<Location> for JsValue

Source§

fn from(obj: Location) -> JsValue

Converts to this type from the input type.
Source§

impl<K, V> From<Map<K, V>> for JsValue

Source§

fn from(obj: Map<K, V>) -> 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<MediaDevices> for JsValue

Source§

fn from(obj: MediaDevices) -> JsValue

Converts to this type from the input type.
Source§

impl From<MediaQueryList> for JsValue

Source§

fn from(obj: MediaQueryList) -> JsValue

Converts to this type from the input type.
Source§

impl From<MediaStream> for JsValue

Source§

fn from(obj: MediaStream) -> JsValue

Converts to this type from the input type.
Source§

impl From<MediaStreamConstraints> for JsValue

Source§

fn from(obj: MediaStreamConstraints) -> JsValue

Converts to this type from the input type.
Source§

impl From<MediaStreamTrack> for JsValue

Source§

fn from(obj: MediaStreamTrack) -> 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<MessageEvent> for JsValue

Source§

fn from(obj: MessageEvent) -> 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<MonthFormat> for JsValue

Source§

fn from(val: MonthFormat) -> JsValue

Converts to this type from the input type.
Source§

impl From<MouseEvent> for JsValue

Source§

fn from(obj: MouseEvent) -> 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<T> From<NonNull<T>> for JsValue

Source§

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

Converts to this type from the input type.
Source§

impl From<Null> for JsValue

Source§

fn from(obj: Null) -> 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<NumberFormatNotation> for JsValue

Source§

fn from(val: NumberFormatNotation) -> JsValue

Converts to this type from the input type.
Source§

impl From<NumberFormatOptions> for JsValue

Source§

fn from(obj: NumberFormatOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<NumberFormatPart> for JsValue

Source§

fn from(obj: NumberFormatPart) -> JsValue

Converts to this type from the input type.
Source§

impl From<NumberFormatPartType> for JsValue

Source§

fn from(val: NumberFormatPartType) -> JsValue

Converts to this type from the input type.
Source§

impl From<NumberFormatStyle> for JsValue

Source§

fn from(val: NumberFormatStyle) -> JsValue

Converts to this type from the input type.
Source§

impl From<NumberRangeFormatPart> for JsValue

Source§

fn from(obj: NumberRangeFormatPart) -> JsValue

Converts to this type from the input type.
Source§

impl From<NumericFormat> for JsValue

Source§

fn from(val: NumericFormat) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<Object<T>> for JsValue

Source§

fn from(obj: Object<T>) -> 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<Performance> for JsValue

Source§

fn from(obj: Performance) -> JsValue

Converts to this type from the input type.
Source§

impl From<PluralCategory> for JsValue

Source§

fn from(val: PluralCategory) -> 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<PluralRulesOptions> for JsValue

Source§

fn from(obj: PluralRulesOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<PluralRulesType> for JsValue

Source§

fn from(val: PluralRulesType) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<Promise<T>> for JsValue

Source§

fn from(obj: Promise<T>) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<PromiseState<T>> for JsValue

Source§

fn from(obj: PromiseState<T>) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<PropertyDescriptor<T>> for JsValue

Source§

fn from(obj: PropertyDescriptor<T>) -> 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<RangeSource> for JsValue

Source§

fn from(val: RangeSource) -> 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<RegExpMatchArray> for JsValue

Source§

fn from(obj: RegExpMatchArray) -> 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<RelativeTimeFormatNumeric> for JsValue

Source§

fn from(val: RelativeTimeFormatNumeric) -> JsValue

Converts to this type from the input type.
Source§

impl From<RelativeTimeFormatOptions> for JsValue

Source§

fn from(obj: RelativeTimeFormatOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<RelativeTimeFormatPart> for JsValue

Source§

fn from(obj: RelativeTimeFormatPart) -> JsValue

Converts to this type from the input type.
Source§

impl From<RelativeTimeFormatPartType> for JsValue

Source§

fn from(val: RelativeTimeFormatPartType) -> JsValue

Converts to this type from the input type.
Source§

impl From<RelativeTimeFormatStyle> for JsValue

Source§

fn from(val: RelativeTimeFormatStyle) -> JsValue

Converts to this type from the input type.
Source§

impl From<RelativeTimeFormatUnit> for JsValue

Source§

fn from(val: RelativeTimeFormatUnit) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResizeObserver> for JsValue

Source§

fn from(obj: ResizeObserver) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResizeObserverEntry> for JsValue

Source§

fn from(obj: ResizeObserverEntry) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResolvedCollatorOptions> for JsValue

Source§

fn from(obj: ResolvedCollatorOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResolvedDateTimeFormatOptions> for JsValue

Source§

fn from(obj: ResolvedDateTimeFormatOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResolvedDisplayNamesOptions> for JsValue

Source§

fn from(obj: ResolvedDisplayNamesOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResolvedDurationFormatOptions> for JsValue

Source§

fn from(obj: ResolvedDurationFormatOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResolvedListFormatOptions> for JsValue

Source§

fn from(obj: ResolvedListFormatOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResolvedNumberFormatOptions> for JsValue

Source§

fn from(obj: ResolvedNumberFormatOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResolvedPluralRulesOptions> for JsValue

Source§

fn from(obj: ResolvedPluralRulesOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResolvedRelativeTimeFormatOptions> for JsValue

Source§

fn from(obj: ResolvedRelativeTimeFormatOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<ResolvedSegmenterOptions> for JsValue

Source§

fn from(obj: ResolvedSegmenterOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<Response> for JsValue

Source§

fn from(obj: Response) -> JsValue

Converts to this type from the input type.
Source§

impl From<RoundingMode> for JsValue

Source§

fn from(val: RoundingMode) -> JsValue

Converts to this type from the input type.
Source§

impl From<RoundingPriority> for JsValue

Source§

fn from(val: RoundingPriority) -> 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<ScrollBehavior> for JsValue

Source§

fn from(val: ScrollBehavior) -> JsValue

Converts to this type from the input type.
Source§

impl From<ScrollIntoViewOptions> for JsValue

Source§

fn from(obj: ScrollIntoViewOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<ScrollLogicalPosition> for JsValue

Source§

fn from(val: ScrollLogicalPosition) -> JsValue

Converts to this type from the input type.
Source§

impl From<SegmentData> for JsValue

Source§

fn from(obj: SegmentData) -> JsValue

Converts to this type from the input type.
Source§

impl From<Segmenter> for JsValue

Source§

fn from(obj: Segmenter) -> JsValue

Converts to this type from the input type.
Source§

impl From<SegmenterGranularity> for JsValue

Source§

fn from(val: SegmenterGranularity) -> JsValue

Converts to this type from the input type.
Source§

impl From<SegmenterOptions> for JsValue

Source§

fn from(obj: SegmenterOptions) -> JsValue

Converts to this type from the input type.
Source§

impl From<Segments> for JsValue

Source§

fn from(obj: Segments) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<Set<T>> for JsValue

Source§

fn from(obj: Set<T>) -> 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<SignDisplay> for JsValue

Source§

fn from(val: SignDisplay) -> JsValue

Converts to this type from the input type.
Source§

impl From<Storage> for JsValue

Source§

fn from(obj: Storage) -> JsValue

Converts to this type from the input type.
Source§

impl From<String> for JsValue

Source§

fn from(s: String) -> JsValue

Converts to this type from the input type.
Source§

impl From<SubmitEvent> for JsValue

Source§

fn from(obj: SubmitEvent) -> JsValue

Converts to this type from the input type.
Source§

impl From<SupportedValuesKey> for JsValue

Source§

fn from(val: SupportedValuesKey) -> JsValue

Converts to this type from the input type.
Source§

impl From<Suspending> for JsValue

Source§

fn from(obj: Suspending) -> 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<Text> for JsValue

Source§

fn from(obj: Text) -> JsValue

Converts to this type from the input type.
Source§

impl From<TextInfo> for JsValue

Source§

fn from(obj: TextInfo) -> JsValue

Converts to this type from the input type.
Source§

impl From<TimeZoneNameFormat> for JsValue

Source§

fn from(val: TimeZoneNameFormat) -> JsValue

Converts to this type from the input type.
Source§

impl From<Touch> for JsValue

Source§

fn from(obj: Touch) -> JsValue

Converts to this type from the input type.
Source§

impl From<TouchEvent> for JsValue

Source§

fn from(obj: TouchEvent) -> JsValue

Converts to this type from the input type.
Source§

impl From<TouchList> for JsValue

Source§

fn from(obj: TouchList) -> JsValue

Converts to this type from the input type.
Source§

impl From<TrailingZeroDisplay> for JsValue

Source§

fn from(val: TrailingZeroDisplay) -> JsValue

Converts to this type from the input type.
Source§

impl From<TransitionEvent> for JsValue

Source§

fn from(obj: TransitionEvent) -> 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<UiEvent> for JsValue

Source§

fn from(obj: UiEvent) -> 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<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<Undefined> for JsValue

Source§

fn from(obj: Undefined) -> JsValue

Converts to this type from the input type.
Source§

impl From<UnitDisplay> for JsValue

Source§

fn from(val: UnitDisplay) -> 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<UseGrouping> for JsValue

Source§

fn from(val: UseGrouping) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<Vec<T>> for JsValue

Source§

fn from(vector: Vec<T>) -> JsValue

Converts to this type from the input type.
Source§

impl From<VisualViewport> for JsValue

Source§

fn from(obj: VisualViewport) -> JsValue

Converts to this type from the input type.
Source§

impl<K, V> From<WeakMap<K, V>> for JsValue

Source§

fn from(obj: WeakMap<K, V>) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<WeakRef<T>> for JsValue

Source§

fn from(obj: WeakRef<T>) -> JsValue

Converts to this type from the input type.
Source§

impl<T> From<WeakSet<T>> for JsValue

Source§

fn from(obj: WeakSet<T>) -> 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<WebGlBuffer> for JsValue

Source§

fn from(obj: WebGlBuffer) -> JsValue

Converts to this type from the input type.
Source§

impl From<WebGlContextAttributes> for JsValue

Source§

fn from(obj: WebGlContextAttributes) -> 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<WebGlRenderbuffer> for JsValue

Source§

fn from(obj: WebGlRenderbuffer) -> 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<WebGlTexture> for JsValue

Source§

fn from(obj: WebGlTexture) -> 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<WebSocket> for JsValue

Source§

fn from(obj: WebSocket) -> JsValue

Converts to this type from the input type.
Source§

impl From<WeekInfo> for JsValue

Source§

fn from(obj: WeekInfo) -> JsValue

Converts to this type from the input type.
Source§

impl From<WeekdayFormat> for JsValue

Source§

fn from(val: WeekdayFormat) -> JsValue

Converts to this type from the input type.
Source§

impl From<WheelEvent> for JsValue

Source§

fn from(obj: WheelEvent) -> 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<YearFormat> for JsValue

Source§

fn from(val: YearFormat) -> 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<i8> for JsValue

Source§

fn from(n: i8) -> 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(arg: i64) -> JsValue

Converts to this type from the input type.
Source§

impl From<i128> for JsValue

Source§

fn from(arg: i128) -> 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<u8> for JsValue

Source§

fn from(n: u8) -> 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(arg: u64) -> JsValue

Converts to this type from the input type.
Source§

impl From<u128> for JsValue

Source§

fn from(arg: u128) -> 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

Source§

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 IntoJsGeneric for JsValue

Source§

type JsCanon = JsValue

The canonical JsGeneric form of this type.
Source§

fn to_js(self) -> JsValue

Produce the canonical JsGeneric value for self.
Source§

impl IntoWasmAbi for JsValue

Source§

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

Source§

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

Source§

type Abi = u32

Same as RefFromWasmAbi::Abi
Source§

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 for &JsValue

Source§

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

Applies the binary * JS operator on two JsValues.

MDN documentation

Source§

type Output = JsValue

The resulting type after applying the * operator.
Source§

impl Mul for JsValue

Source§

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<&JsValue> for JsValue

Source§

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

Source§

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

Source§

type Output = JsValue

The resulting type after applying the - operator.
Source§

impl Neg for JsValue

Source§

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

Source§

type Output = bool

The resulting type after applying the ! operator.
Source§

impl Not for JsValue

Source§

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 OptionFromWasmAbi for JsValue

Source§

fn is_none(js: &u32) -> bool

Tests whether the argument is a “none” instance. If so it will be deserialized as None, and otherwise it will be passed to FromWasmAbi.
Source§

impl OptionIntoWasmAbi for JsValue

Source§

fn none() -> u32

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
Source§

impl OptionIntoWasmAbi for &JsValue

Source§

fn none() -> u32

Returns an ABI instance indicating “none”, which JS will interpret as the None branch of this option. Read more
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 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

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

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

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

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<String> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<bool> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<f32> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<f64> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<i8> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<i16> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<i32> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<i64> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<i128> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<isize> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<str> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<u8> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<u16> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<u32> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<u64> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<u128> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl PartialEq<usize> for JsValue

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl Promising for JsValue

Source§

type Resolution = JsValue

The type that this value resolves to.
Source§

impl RefFromWasmAbi for JsValue

Source§

type Abi = u32

The Wasm ABI type references to Self are recovered from.
Source§

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 for &JsValue

Source§

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

Applies the binary % JS operator on two JsValues.

MDN documentation

Source§

type Output = JsValue

The resulting type after applying the % operator.
Source§

impl Rem for JsValue

Source§

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<&JsValue> for JsValue

Source§

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

Source§

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 Send for JsValue

Available on non-target feature atomics only.
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

Source§

type Output = JsValue

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

impl Shl for JsValue

Source§

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<&JsValue> for JsValue

Source§

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

Source§

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 for &JsValue

Source§

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

Applies the binary >> JS operator on two JsValues.

MDN documentation

Source§

type Output = JsValue

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

impl Shr for JsValue

Source§

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<&JsValue> for JsValue

Source§

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

Source§

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 for &JsValue

Source§

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

Applies the binary - JS operator on two JsValues.

MDN documentation

Source§

type Output = JsValue

The resulting type after applying the - operator.
Source§

impl Sub for JsValue

Source§

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<&JsValue> for JsValue

Source§

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

Source§

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 Sync for JsValue

Available on non-target feature atomics only.
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

Source§

type Error = JsValue

The type returned in the event of a conversion error.
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

Source§

type Error = JsValue

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

impl TryFrom<JsValue> for String

Source§

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 i64

Source§

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 u64

Source§

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 TryFrom<JsValue> for i128

Source§

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 u128

Source§

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 UpcastFrom<()> for JsValue

Source§

impl UpcastFrom<AggregateError> for JsValue

Source§

impl UpcastFrom<AnimationEvent> for JsValue

Source§

impl<T> UpcastFrom<Array<T>> for JsValue

Source§

impl UpcastFrom<ArrayBuffer> for JsValue

Source§

impl UpcastFrom<ArrayBufferOptions> for JsValue

Source§

impl<T> UpcastFrom<ArrayTuple<T>> for JsValue
where T: JsTuple,

Source§

impl<T> UpcastFrom<AsyncGenerator<T>> for JsValue

Source§

impl<T> UpcastFrom<AsyncIterator<T>> for JsValue

Source§

impl UpcastFrom<AudioBuffer> for JsValue

Source§

impl UpcastFrom<AudioBufferSourceNode> for JsValue

Source§

impl UpcastFrom<AudioContext> for JsValue

Source§

impl UpcastFrom<AudioDestinationNode> for JsValue

Source§

impl UpcastFrom<AudioListener> for JsValue

Source§

impl UpcastFrom<AudioNode> for JsValue

Source§

impl UpcastFrom<AudioParam> for JsValue

Source§

impl UpcastFrom<AudioScheduledSourceNode> for JsValue

Source§

impl UpcastFrom<BaseAudioContext> for JsValue

Source§

impl UpcastFrom<BeforeUnloadEvent> for JsValue

Source§

impl UpcastFrom<BigInt64Array> for JsValue

Source§

impl UpcastFrom<BigInt> for JsValue

Source§

impl UpcastFrom<BigUint64Array> for JsValue

Source§

impl UpcastFrom<Blob> for JsValue

Source§

impl UpcastFrom<Boolean> for JsValue

Source§

impl UpcastFrom<CanvasGradient> for JsValue

Source§

impl UpcastFrom<CanvasRenderingContext2d> for JsValue

Source§

impl UpcastFrom<CharacterData> for JsValue

Source§

impl UpcastFrom<Clipboard> for JsValue

Source§

impl UpcastFrom<ClipboardEvent> for JsValue

Source§

impl UpcastFrom<Collator> for JsValue

Source§

impl UpcastFrom<CollatorOptions> for JsValue

Source§

impl UpcastFrom<CompileError> for JsValue

Source§

impl UpcastFrom<ConsoleTask> for JsValue

Source§

impl UpcastFrom<CssStyleDeclaration> for JsValue

Source§

impl UpcastFrom<DataTransfer> for JsValue

Source§

impl UpcastFrom<DataView> for JsValue

Source§

impl UpcastFrom<Date> for JsValue

Source§

impl UpcastFrom<DateTimeFormat> for JsValue

Source§

impl UpcastFrom<DateTimeFormatOptions> for JsValue

Source§

impl UpcastFrom<DateTimeFormatPart> for JsValue

Source§

impl UpcastFrom<DateTimeRangeFormatPart> for JsValue

Source§

impl UpcastFrom<DisplayNames> for JsValue

Source§

impl UpcastFrom<DisplayNamesOptions> for JsValue

Source§

impl UpcastFrom<Document> for JsValue

Source§

impl UpcastFrom<DocumentFragment> for JsValue

Source§

impl UpcastFrom<DomRect> for JsValue

Source§

impl UpcastFrom<DomRectReadOnly> for JsValue

Source§

impl UpcastFrom<DragEvent> for JsValue

Source§

impl UpcastFrom<Duration> for JsValue

Source§

impl UpcastFrom<DurationFormat> for JsValue

Source§

impl UpcastFrom<DurationFormatOptions> for JsValue

Source§

impl UpcastFrom<DurationFormatPart> for JsValue

Source§

impl UpcastFrom<Element> for JsValue

Source§

impl UpcastFrom<Error> for JsValue

Source§

impl UpcastFrom<ErrorOptions> for JsValue

Source§

impl UpcastFrom<EvalError> for JsValue

Source§

impl UpcastFrom<Event> for JsValue

Source§

impl UpcastFrom<EventInit> for JsValue

Source§

impl UpcastFrom<EventSource> for JsValue

Source§

impl UpcastFrom<EventTarget> for JsValue

Source§

impl UpcastFrom<Exception> for JsValue

Source§

impl UpcastFrom<File> for JsValue

Source§

impl UpcastFrom<FileList> for JsValue

Source§

impl UpcastFrom<FileReader> for JsValue

Source§

impl UpcastFrom<FinalizationRegistry> for JsValue

Source§

impl UpcastFrom<Float16Array> for JsValue

Source§

impl UpcastFrom<Float32Array> for JsValue

Source§

impl UpcastFrom<Float64Array> for JsValue

Source§

impl UpcastFrom<FocusEvent> for JsValue

Source§

impl<T> UpcastFrom<Function<T>> for JsValue
where T: JsFunction,

Source§

impl UpcastFrom<GainNode> for JsValue

Source§

impl UpcastFrom<Gamepad> for JsValue

Source§

impl UpcastFrom<GamepadButton> for JsValue

Source§

impl UpcastFrom<GamepadEvent> for JsValue

Source§

impl<T> UpcastFrom<Generator<T>> for JsValue

Source§

impl UpcastFrom<Global> for JsValue

Source§

impl UpcastFrom<Global> for JsValue

Source§

impl UpcastFrom<Global> for JsValue

Source§

impl UpcastFrom<HashChangeEvent> for JsValue

Source§

impl UpcastFrom<History> for JsValue

Source§

impl UpcastFrom<HtmlButtonElement> for JsValue

Source§

impl UpcastFrom<HtmlCanvasElement> for JsValue

Source§

impl UpcastFrom<HtmlCollection> for JsValue

Source§

impl UpcastFrom<HtmlElement> for JsValue

Source§

impl UpcastFrom<HtmlFormElement> for JsValue

Source§

impl UpcastFrom<HtmlHeadElement> for JsValue

Source§

impl UpcastFrom<HtmlImageElement> for JsValue

Source§

impl UpcastFrom<HtmlInputElement> for JsValue

Source§

impl UpcastFrom<HtmlMediaElement> for JsValue

Source§

impl UpcastFrom<HtmlMetaElement> for JsValue

Source§

impl UpcastFrom<HtmlOptionElement> for JsValue

Source§

impl UpcastFrom<HtmlSelectElement> for JsValue

Source§

impl UpcastFrom<HtmlStyleElement> for JsValue

Source§

impl UpcastFrom<HtmlTextAreaElement> for JsValue

Source§

impl UpcastFrom<HtmlVideoElement> for JsValue

Source§

impl UpcastFrom<ImageData> for JsValue

Source§

impl UpcastFrom<InputEvent> for JsValue

Source§

impl UpcastFrom<Instance> for JsValue

Source§

impl UpcastFrom<Int8Array> for JsValue

Source§

impl UpcastFrom<Int16Array> for JsValue

Source§

impl UpcastFrom<Int32Array> for JsValue

Source§

impl UpcastFrom<IntersectionObserver> for JsValue

Source§

impl UpcastFrom<IntersectionObserverEntry> for JsValue

Source§

impl UpcastFrom<IntersectionObserverInit> for JsValue

Source§

impl<T> UpcastFrom<Iterator<T>> for JsValue

Source§

impl<T> UpcastFrom<IteratorNext<T>> for JsValue

Source§

impl UpcastFrom<JsClosure> for JsValue

Source§

impl UpcastFrom<JsError> for JsValue

Source§

impl<T> UpcastFrom<JsNullable<T>> for JsValue

Source§

impl<T> UpcastFrom<JsOption<T>> for JsValue

Source§

impl UpcastFrom<JsString> for JsValue

Source§

impl UpcastFrom<JsValue> for JsOption

Source§

impl UpcastFrom<JsValue> for JsNullable

Source§

impl UpcastFrom<JsValue> for JsValue

Source§

impl UpcastFrom<KeyboardEvent> for JsValue

Source§

impl UpcastFrom<LinkError> for JsValue

Source§

impl UpcastFrom<ListFormat> for JsValue

Source§

impl UpcastFrom<ListFormatOptions> for JsValue

Source§

impl UpcastFrom<ListFormatPart> for JsValue

Source§

impl UpcastFrom<Locale> for JsValue

Source§

impl UpcastFrom<LocaleMatcherOptions> for JsValue

Source§

impl UpcastFrom<Location> for JsValue

Source§

impl<K, V> UpcastFrom<Map<K, V>> for JsValue

Source§

impl UpcastFrom<MaybeIterator> for JsValue

Source§

impl UpcastFrom<MediaDevices> for JsValue

Source§

impl UpcastFrom<MediaQueryList> for JsValue

Source§

impl UpcastFrom<MediaStream> for JsValue

Source§

impl UpcastFrom<MediaStreamConstraints> for JsValue

Source§

impl UpcastFrom<MediaStreamTrack> for JsValue

Source§

impl UpcastFrom<Memory> for JsValue

Source§

impl UpcastFrom<MessageEvent> for JsValue

Source§

impl UpcastFrom<Module> for JsValue

Source§

impl UpcastFrom<MouseEvent> for JsValue

Source§

impl UpcastFrom<Navigator> for JsValue

Source§

impl UpcastFrom<Node> for JsValue

Source§

impl UpcastFrom<NodeList> for JsValue

Source§

impl UpcastFrom<Null> for JsValue

Source§

impl UpcastFrom<Number> for JsValue

Source§

impl UpcastFrom<NumberFormat> for JsValue

Source§

impl UpcastFrom<NumberFormatOptions> for JsValue

Source§

impl UpcastFrom<NumberFormatPart> for JsValue

Source§

impl UpcastFrom<NumberRangeFormatPart> for JsValue

Source§

impl<T> UpcastFrom<Object<T>> for JsValue

Source§

impl UpcastFrom<Performance> for JsValue

Source§

impl UpcastFrom<PluralRules> for JsValue

Source§

impl UpcastFrom<PluralRulesOptions> for JsValue

Source§

impl<T> UpcastFrom<Promise<T>> for JsValue

Source§

impl<T> UpcastFrom<PromiseState<T>> for JsValue

Source§

impl<T> UpcastFrom<PropertyDescriptor<T>> for JsValue

Source§

impl UpcastFrom<Proxy> for JsValue

Source§

impl UpcastFrom<RangeError> for JsValue

Source§

impl UpcastFrom<ReferenceError> for JsValue

Source§

impl UpcastFrom<RegExp> for JsValue

Source§

impl UpcastFrom<RegExpMatchArray> for JsValue

Source§

impl UpcastFrom<RelativeTimeFormat> for JsValue

Source§

impl UpcastFrom<RelativeTimeFormatOptions> for JsValue

Source§

impl UpcastFrom<RelativeTimeFormatPart> for JsValue

Source§

impl UpcastFrom<ResizeObserver> for JsValue

Source§

impl UpcastFrom<ResizeObserverEntry> for JsValue

Source§

impl UpcastFrom<ResolvedCollatorOptions> for JsValue

Source§

impl UpcastFrom<ResolvedDateTimeFormatOptions> for JsValue

Source§

impl UpcastFrom<ResolvedDisplayNamesOptions> for JsValue

Source§

impl UpcastFrom<ResolvedDurationFormatOptions> for JsValue

Source§

impl UpcastFrom<ResolvedListFormatOptions> for JsValue

Source§

impl UpcastFrom<ResolvedNumberFormatOptions> for JsValue

Source§

impl UpcastFrom<ResolvedPluralRulesOptions> for JsValue

Source§

impl UpcastFrom<ResolvedRelativeTimeFormatOptions> for JsValue

Source§

impl UpcastFrom<ResolvedSegmenterOptions> for JsValue

Source§

impl UpcastFrom<Response> for JsValue

Source§

impl UpcastFrom<RuntimeError> for JsValue

Source§

impl UpcastFrom<ScrollIntoViewOptions> for JsValue

Source§

impl UpcastFrom<SegmentData> for JsValue

Source§

impl UpcastFrom<Segmenter> for JsValue

Source§

impl UpcastFrom<SegmenterOptions> for JsValue

Source§

impl UpcastFrom<Segments> for JsValue

Source§

impl<T> UpcastFrom<Set<T>> for JsValue

Source§

impl UpcastFrom<SharedArrayBuffer> for JsValue

Source§

impl UpcastFrom<Storage> for JsValue

Source§

impl UpcastFrom<SubmitEvent> for JsValue

Source§

impl UpcastFrom<Suspending> for JsValue

Source§

impl UpcastFrom<Symbol> for JsValue

Source§

impl UpcastFrom<SyntaxError> for JsValue

Source§

impl UpcastFrom<Table> for JsValue

Source§

impl UpcastFrom<Tag> for JsValue

Source§

impl UpcastFrom<Text> for JsValue

Source§

impl UpcastFrom<TextInfo> for JsValue

Source§

impl UpcastFrom<Touch> for JsValue

Source§

impl UpcastFrom<TouchEvent> for JsValue

Source§

impl UpcastFrom<TouchList> for JsValue

Source§

impl UpcastFrom<TransitionEvent> for JsValue

Source§

impl UpcastFrom<TypeError> for JsValue

Source§

impl UpcastFrom<UiEvent> for JsValue

Source§

impl UpcastFrom<Uint8Array> for JsValue

Source§

impl UpcastFrom<Uint8ClampedArray> for JsValue

Source§

impl UpcastFrom<Uint16Array> for JsValue

Source§

impl UpcastFrom<Uint32Array> for JsValue

Source§

impl UpcastFrom<Undefined> for JsValue

Source§

impl UpcastFrom<UriError> for JsValue

Source§

impl UpcastFrom<VisualViewport> for JsValue

Source§

impl<K, V> UpcastFrom<WeakMap<K, V>> for JsValue

Source§

impl<T> UpcastFrom<WeakRef<T>> for JsValue

Source§

impl<T> UpcastFrom<WeakSet<T>> for JsValue

Source§

impl UpcastFrom<WebGl2RenderingContext> for JsValue

Source§

impl UpcastFrom<WebGlBuffer> for JsValue

Source§

impl UpcastFrom<WebGlContextAttributes> for JsValue

Source§

impl UpcastFrom<WebGlFramebuffer> for JsValue

Source§

impl UpcastFrom<WebGlProgram> for JsValue

Source§

impl UpcastFrom<WebGlRenderbuffer> for JsValue

Source§

impl UpcastFrom<WebGlShader> for JsValue

Source§

impl UpcastFrom<WebGlTexture> for JsValue

Source§

impl UpcastFrom<WebGlUniformLocation> for JsValue

Source§

impl UpcastFrom<WebGlVertexArrayObject> for JsValue

Source§

impl UpcastFrom<WebSocket> for JsValue

Source§

impl UpcastFrom<WeekInfo> for JsValue

Source§

impl UpcastFrom<WheelEvent> for JsValue

Source§

impl UpcastFrom<Window> for JsValue

Source§

impl UpcastFrom<bool> for JsValue

Source§

impl UpcastFrom<char> for JsValue

Source§

impl UpcastFrom<f32> for JsValue

Source§

impl UpcastFrom<f64> for JsValue

Source§

impl UpcastFrom<i8> for JsValue

Source§

impl UpcastFrom<i16> for JsValue

Source§

impl UpcastFrom<i32> for JsValue

Source§

impl UpcastFrom<i64> for JsValue

Source§

impl UpcastFrom<i128> for JsValue

Source§

impl UpcastFrom<isize> for JsValue

Source§

impl UpcastFrom<u8> for JsValue

Source§

impl UpcastFrom<u16> for JsValue

Source§

impl UpcastFrom<u32> for JsValue

Source§

impl UpcastFrom<u64> for JsValue

Source§

impl UpcastFrom<u128> for JsValue

Source§

impl UpcastFrom<usize> for JsValue

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> JsGeneric for T
where T: ErasableGeneric<Repr = JsValue> + UpcastFrom<T> + Upcast<JsValue> + JsCast + 'static,

Source§

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

Source§

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,

Source§

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>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T> TryFromJsValue for T
where T: JsCast,

Source§

fn try_from_js_value(val: JsValue) -> Result<T, JsValue>

Performs the conversion.
Source§

fn try_from_js_value_ref(val: &JsValue) -> Option<T>

Performs the conversion.
Source§

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

Source§

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.
Source§

impl<S, T> Upcast<T> for S
where T: UpcastFrom<S> + ?Sized, S: ?Sized,

Source§

fn upcast(&self) -> &T
where Self: ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider ref type within the Wasm bindgen generics type system. Read more
Source§

fn upcast_into(self) -> T
where Self: Sized + ErasableGeneric, T: Sized + ErasableGeneric<Repr = Self::Repr>,

Perform a zero-cost type-safe upcast to a wider type within the Wasm bindgen generics type system. Read more
Source§

impl<T> VectorFromWasmAbi for T
where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

Source§

impl<T> VectorIntoWasmAbi for T
where T: ErasableGeneric<Repr = JsValue> + WasmDescribe,

Source§

impl<T> VectorRefIntoWasmAbi for T
where &'a T: for<'a> Into<JsValue>,

Source§

fn slice_into_abi(slice: &[T]) -> WasmSlice

Construct the wire representation for Some(slice). The returned WasmSlice is either a borrow of the input slice (primitive case) or a buffer JS owns and frees (handle-shaped case).
Source§

fn slice_none() -> WasmSlice
where Self: Sized,

Wire representation for None (used by Option<&[T]>). A null WasmSlice (ptr == 0) is the convention shared with every other vector-like ABI in the crate.