Skip to main content

JsNullable

Struct JsNullable 

Source
pub struct JsNullable<T = JsValue> { /* private fields */ }
Expand description

A nullable JS value of type T.

Unlike Option<T>, which is a Rust-side construct, JsNullable<T> represents a JS value that may be T or null, where the presence status is not yet known in Rust. The value remains in JS until inspected via methods like is_empty, as_option, or into_option.

This models WebIDL nullable types (T?). Following WebIDLโ€™s ECMAScript conversion rules, where undefined coerces to null at nullable positions, both null and undefined are treated as absent. The canonical empty value produced from Rust is null.

For TypeScript-style T | undefined with strict undefined-only emptiness, use JsOption<T> instead.

T must implement JsGeneric, meaning it is any type that can be represented as a JsValue (e.g., JsString, Number, Object, etc.). JsNullable<T> itself implements JsGeneric, so it can be used in all generic positions that accept JS types.

Implementationsยง

Sourceยง

impl<T> JsNullable<T>
where T: JsGeneric,

Source

pub fn new() -> JsNullable<T>

Creates an empty JsNullable<T> representing null.

Source

pub fn wrap(val: T) -> JsNullable<T>

Wraps a value in a JsNullable<T>.

Source

pub fn from_option(opt: Option<T>) -> JsNullable<T>

Creates a JsNullable<T> from an Option<T>.

Returns JsNullable::wrap(val) if Some(val), otherwise JsNullable::new().

Source

pub fn is_empty(&self) -> bool

Tests whether this JsNullable<T> is empty (null or undefined).

Source

pub fn as_option(&self) -> Option<T>

Converts this JsNullable<T> to an Option<T> by cloning the inner value.

Returns None if the value is null or undefined, otherwise returns Some(T) with a clone of the contained value.

Source

pub fn into_option(self) -> Option<T>

Converts this JsNullable<T> into an Option<T>, consuming self.

Returns None if the value is null or undefined, otherwise returns Some(T) with the contained value.

Source

pub fn unwrap(self) -> T

Returns the contained value, consuming self.

ยงPanics

Panics if the value is null or undefined.

Source

pub fn expect(self, msg: &str) -> T

Returns the contained value, consuming self.

ยงPanics

Panics if the value is null or undefined, with a panic message including the passed message.

Source

pub fn unwrap_or_default(self) -> T
where T: Default,

Returns the contained value or a default.

Returns the contained value if not null or undefined, otherwise returns the default value of T.

Source

pub fn unwrap_or_else<F>(self, f: F) -> T
where F: FnOnce() -> T,

Returns the contained value or computes it from a closure.

Returns the contained value if not null or undefined, otherwise calls f and returns the result.

Methods from Deref<Target = JsValue>ยง

Source

pub const NULL: JsValue

Source

pub const UNDEFINED: JsValue

Source

pub const TRUE: JsValue

Source

pub const FALSE: JsValue

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

Sourceยง

fn as_ref(&self) -> &JsNullable<T>

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

Sourceยง

fn clone(&self) -> JsNullable<T>

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<T> Debug for JsNullable<T>
where T: JsGeneric + Debug,

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl<T> Default for JsNullable<T>
where T: JsGeneric,

Sourceยง

fn default() -> JsNullable<T>

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl<T> Deref for JsNullable<T>

Sourceยง

type Target = JsValue

The resulting type after dereferencing.
Sourceยง

fn deref(&self) -> &JsValue

Dereferences the value.
Sourceยง

impl<T> Display for JsNullable<T>
where T: JsGeneric + Display,

Sourceยง

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

Formats the value using the given formatter. Read more
Sourceยง

impl<T> ErasableGeneric for JsNullable<T>

Sourceยง

type Repr = JsValue

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

impl From<JsValue> for JsNullable

Sourceยง

fn from(obj: JsValue) -> JsNullable

Converts to this type from the input type.
Sourceยง

impl<T> FromWasmAbi for JsNullable<T>

Sourceยง

type Abi = <JsValue as FromWasmAbi>::Abi

The Wasm ABI type that this converts from when coming back out from the ABI boundary.
Sourceยง

unsafe fn from_abi(js: <JsNullable<T> as FromWasmAbi>::Abi) -> JsNullable<T>

Recover a Self from Self::Abi. Read more
Sourceยง

impl<T> IntoJsGeneric for JsNullable<T>

Sourceยง

type JsCanon = JsNullable<T>

The canonical JsGeneric form of this type.
Sourceยง

fn to_js(self) -> JsNullable<T>

Produce the canonical JsGeneric value for self.
Sourceยง

impl<T> IntoWasmAbi for JsNullable<T>

Sourceยง

type Abi = <JsValue as IntoWasmAbi>::Abi

The Wasm ABI type that this converts into when crossing the ABI boundary.
Sourceยง

fn into_abi(self) -> <JsNullable<T> as IntoWasmAbi>::Abi

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
Sourceยง

impl<'__wbg_ref, T> IntoWasmAbi for &'__wbg_ref JsNullable<T>

Sourceยง

type Abi = <&'__wbg_ref JsValue as IntoWasmAbi>::Abi

The Wasm ABI type that this converts into when crossing the ABI boundary.
Sourceยง

fn into_abi(self) -> <&'__wbg_ref JsNullable<T> as IntoWasmAbi>::Abi

Convert self into Self::Abi so that it can be sent across the wasm ABI boundary.
Sourceยง

impl<T> JsCast for JsNullable<T>

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

Performs a zero-cost unchecked conversion from a JsValue into an instance of Self Read more
Sourceยง

fn unchecked_from_js_ref(val: &JsValue) -> &JsNullable<T>

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

Sourceยง

type Abi = <JsValue as LongRefFromWasmAbi>::Abi

Same as RefFromWasmAbi::Abi
Sourceยง

type Anchor = JsNullable<T>

Same as RefFromWasmAbi::Anchor
Sourceยง

unsafe fn long_ref_from_abi( js: <JsNullable<T> as LongRefFromWasmAbi>::Abi, ) -> <JsNullable<T> as LongRefFromWasmAbi>::Anchor

Same as RefFromWasmAbi::ref_from_abi
Sourceยง

impl<T> OptionFromWasmAbi for JsNullable<T>

Sourceยง

fn is_none(abi: &<JsNullable<T> as FromWasmAbi>::Abi) -> 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<T> OptionIntoWasmAbi for JsNullable<T>

Sourceยง

fn none() -> <JsNullable<T> as IntoWasmAbi>::Abi

Returns an ABI instance indicating โ€œnoneโ€, which JS will interpret as the None branch of this option. Read more
Sourceยง

impl<'__wbg_ref, T> OptionIntoWasmAbi for &'__wbg_ref JsNullable<T>

Sourceยง

fn none() -> <&'__wbg_ref JsNullable<T> as IntoWasmAbi>::Abi

Returns an ABI instance indicating โ€œnoneโ€, which JS will interpret as the None branch of this option. Read more
Sourceยง

impl<T> PartialEq for JsNullable<T>
where T: PartialEq,

Sourceยง

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

Equality operator ==. Read more
1.0.0 (const: unstable) ยท Sourceยง

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

Inequality operator !=. Read more
Sourceยง

impl<T> Promising for JsNullable<T>

Sourceยง

type Resolution = JsNullable<T>

The type that this value resolves to.
Sourceยง

impl<T> RefFromWasmAbi for JsNullable<T>

Sourceยง

type Abi = <JsValue as RefFromWasmAbi>::Abi

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

type Anchor = ManuallyDrop<JsNullable<T>>

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: <JsNullable<T> as RefFromWasmAbi>::Abi, ) -> <JsNullable<T> as RefFromWasmAbi>::Anchor

Recover a Self::Anchor from Self::Abi. Read more
Sourceยง

impl<T> StructuralPartialEq for JsNullable<T>
where T: PartialEq,

Sourceยง

impl<T> UpcastFrom<()> for JsNullable<T>

Sourceยง

impl<T1, T2, Target1, Target2> UpcastFrom<(T1, T2)> for JsNullable<(Target1, Target2)>
where T1: JsGeneric, T2: JsGeneric, Target1: JsGeneric + UpcastFrom<T1>, Target2: JsGeneric + UpcastFrom<T2>,

Sourceยง

impl<T1, T2, T3, Target1, Target2, Target3> UpcastFrom<(T1, T2, T3)> for JsNullable<(Target1, Target2, Target3)>
where T1: JsGeneric, T2: JsGeneric, T3: JsGeneric, Target1: JsGeneric + UpcastFrom<T1>, Target2: JsGeneric + UpcastFrom<T2>, Target3: JsGeneric + UpcastFrom<T3>,

Sourceยง

impl<T1, T2, T3, T4, Target1, Target2, Target3, Target4> UpcastFrom<(T1, T2, T3, T4)> for JsNullable<(Target1, Target2, Target3, Target4)>
where T1: JsGeneric, T2: JsGeneric, T3: JsGeneric, T4: JsGeneric, Target1: JsGeneric + UpcastFrom<T1>, Target2: JsGeneric + UpcastFrom<T2>, Target3: JsGeneric + UpcastFrom<T3>, Target4: JsGeneric + UpcastFrom<T4>,

Sourceยง

impl<T1, T2, T3, T4, T5, Target1, Target2, Target3, Target4, Target5> UpcastFrom<(T1, T2, T3, T4, T5)> for JsNullable<(Target1, Target2, Target3, Target4, Target5)>
where T1: JsGeneric, T2: JsGeneric, T3: JsGeneric, T4: JsGeneric, T5: JsGeneric, Target1: JsGeneric + UpcastFrom<T1>, Target2: JsGeneric + UpcastFrom<T2>, Target3: JsGeneric + UpcastFrom<T3>, Target4: JsGeneric + UpcastFrom<T4>, Target5: JsGeneric + UpcastFrom<T5>,

Sourceยง

impl<T1, T2, T3, T4, T5, T6, Target1, Target2, Target3, Target4, Target5, Target6> UpcastFrom<(T1, T2, T3, T4, T5, T6)> for JsNullable<(Target1, Target2, Target3, Target4, Target5, Target6)>
where T1: JsGeneric, T2: JsGeneric, T3: JsGeneric, T4: JsGeneric, T5: JsGeneric, T6: JsGeneric, Target1: JsGeneric + UpcastFrom<T1>, Target2: JsGeneric + UpcastFrom<T2>, Target3: JsGeneric + UpcastFrom<T3>, Target4: JsGeneric + UpcastFrom<T4>, Target5: JsGeneric + UpcastFrom<T5>, Target6: JsGeneric + UpcastFrom<T6>,

Sourceยง

impl<T1, T2, T3, T4, T5, T6, T7, Target1, Target2, Target3, Target4, Target5, Target6, Target7> UpcastFrom<(T1, T2, T3, T4, T5, T6, T7)> for JsNullable<(Target1, Target2, Target3, Target4, Target5, Target6, Target7)>
where T1: JsGeneric, T2: JsGeneric, T3: JsGeneric, T4: JsGeneric, T5: JsGeneric, T6: JsGeneric, T7: JsGeneric, Target1: JsGeneric + UpcastFrom<T1>, Target2: JsGeneric + UpcastFrom<T2>, Target3: JsGeneric + UpcastFrom<T3>, Target4: JsGeneric + UpcastFrom<T4>, Target5: JsGeneric + UpcastFrom<T5>, Target6: JsGeneric + UpcastFrom<T6>, Target7: JsGeneric + UpcastFrom<T7>,

Sourceยง

impl<T1, T2, T3, T4, T5, T6, T7, T8, Target1, Target2, Target3, Target4, Target5, Target6, Target7, Target8> UpcastFrom<(T1, T2, T3, T4, T5, T6, T7, T8)> for JsNullable<(Target1, Target2, Target3, Target4, Target5, Target6, Target7, Target8)>
where T1: JsGeneric, T2: JsGeneric, T3: JsGeneric, T4: JsGeneric, T5: JsGeneric, T6: JsGeneric, T7: JsGeneric, T8: JsGeneric, Target1: JsGeneric + UpcastFrom<T1>, Target2: JsGeneric + UpcastFrom<T2>, Target3: JsGeneric + UpcastFrom<T3>, Target4: JsGeneric + UpcastFrom<T4>, Target5: JsGeneric + UpcastFrom<T5>, Target6: JsGeneric + UpcastFrom<T6>, Target7: JsGeneric + UpcastFrom<T7>, Target8: JsGeneric + UpcastFrom<T8>,

Sourceยง

impl<T1, Target1> UpcastFrom<(T1,)> for JsNullable<(Target1,)>
where T1: JsGeneric, Target1: JsGeneric + UpcastFrom<T1>,

Sourceยง

impl<T, Target> UpcastFrom<*const T> for JsNullable<*const Target>
where Target: UpcastFrom<T>,

Sourceยง

impl UpcastFrom<AggregateError> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<AggregateError> for JsNullable<AggregateError>

Sourceยง

impl UpcastFrom<AggregateError> for JsNullable<Error>

Sourceยง

impl UpcastFrom<AggregateError> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<Array<T>> for JsNullable<Array<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T> UpcastFrom<Array<T>> for JsNullable<Object>

Sourceยง

impl UpcastFrom<ArrayBuffer> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ArrayBuffer> for JsNullable<ArrayBuffer>

Sourceยง

impl UpcastFrom<ArrayBuffer> for JsNullable<Object>

Sourceยง

impl UpcastFrom<ArrayBufferOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ArrayBufferOptions> for JsNullable<ArrayBufferOptions>

Sourceยง

impl UpcastFrom<ArrayBufferOptions> for JsNullable<Object>

Sourceยง

impl<T1, T2, Target> UpcastFrom<ArrayTuple<(T1, T2)>> for JsNullable<Array<Target>>
where Target: UpcastFrom<T1> + UpcastFrom<T2>,

Sourceยง

impl<T1, T2, T3, Target> UpcastFrom<ArrayTuple<(T1, T2, T3)>> for JsNullable<Array<Target>>
where Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3>,

Sourceยง

impl<T1, T2, T3, T4, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4)>> for JsNullable<Array<Target>>
where Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4>,

Sourceยง

impl<T1, T2, T3, T4, T5, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5)>> for JsNullable<Array<Target>>
where Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4> + UpcastFrom<T5>,

Sourceยง

impl<T1, T2, T3, T4, T5, T6, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5, T6)>> for JsNullable<Array<Target>>
where Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4> + UpcastFrom<T5> + UpcastFrom<T6>,

Sourceยง

impl<T1, T2, T3, T4, T5, T6, T7, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5, T6, T7)>> for JsNullable<Array<Target>>
where Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4> + UpcastFrom<T5> + UpcastFrom<T6> + UpcastFrom<T7>,

Sourceยง

impl<T1, T2, T3, T4, T5, T6, T7, T8, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5, T6, T7, T8)>> for JsNullable<Array<Target>>
where Target: UpcastFrom<T1> + UpcastFrom<T2> + UpcastFrom<T3> + UpcastFrom<T4> + UpcastFrom<T5> + UpcastFrom<T6> + UpcastFrom<T7> + UpcastFrom<T8>,

Sourceยง

impl<T1, Target> UpcastFrom<ArrayTuple<(T1,)>> for JsNullable<Array<Target>>
where Target: UpcastFrom<T1>,

Sourceยง

impl<T: JsTuple> UpcastFrom<ArrayTuple<T>> for JsNullable<JsValue>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<AsyncGenerator<T>> for JsNullable<AsyncGenerator<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T> UpcastFrom<AsyncGenerator<T>> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<AsyncIterator<T>> for JsNullable<AsyncIterator<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl UpcastFrom<BigInt64Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<BigInt64Array> for JsNullable<BigInt64Array>

Sourceยง

impl UpcastFrom<BigInt64Array> for JsNullable<Object>

Sourceยง

impl UpcastFrom<BigInt> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<BigInt> for JsNullable<BigInt>

Sourceยง

impl UpcastFrom<BigInt> for JsNullable<Object>

Sourceยง

impl UpcastFrom<BigUint64Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<BigUint64Array> for JsNullable<BigUint64Array>

Sourceยง

impl UpcastFrom<BigUint64Array> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Boolean> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Boolean> for JsNullable<Boolean>

Sourceยง

impl UpcastFrom<Boolean> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Collator> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Collator> for JsNullable<Collator>

Sourceยง

impl UpcastFrom<Collator> for JsNullable<Object>

Sourceยง

impl UpcastFrom<CollatorOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<CollatorOptions> for JsNullable<CollatorOptions>

Sourceยง

impl UpcastFrom<CollatorOptions> for JsNullable<Object>

Sourceยง

impl UpcastFrom<CompileError> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<CompileError> for JsNullable<CompileError>

Sourceยง

impl UpcastFrom<CompileError> for JsNullable<Error>

Sourceยง

impl UpcastFrom<DataView> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<DataView> for JsNullable<DataView>

Sourceยง

impl UpcastFrom<DataView> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Date> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Date> for JsNullable<Date>

Sourceยง

impl UpcastFrom<Date> for JsNullable<Object>

Sourceยง

impl UpcastFrom<DateTimeFormat> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<DateTimeFormat> for JsNullable<DateTimeFormat>

Sourceยง

impl UpcastFrom<DateTimeFormat> for JsNullable<Object>

Sourceยง

impl UpcastFrom<DateTimeFormatOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<DateTimeFormatOptions> for JsNullable<DateTimeFormatOptions>

Sourceยง

impl UpcastFrom<DateTimeFormatOptions> for JsNullable<Object>

Sourceยง

impl UpcastFrom<DateTimeFormatPart> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<DateTimeFormatPart> for JsNullable<DateTimeFormatPart>

Sourceยง

impl UpcastFrom<DateTimeFormatPart> for JsNullable<Object>

Sourceยง

impl UpcastFrom<DateTimeRangeFormatPart> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<DateTimeRangeFormatPart> for JsNullable<DateTimeRangeFormatPart>

Sourceยง

impl UpcastFrom<DateTimeRangeFormatPart> for JsNullable<DateTimeFormatPart>

Sourceยง

impl UpcastFrom<DisplayNames> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<DisplayNames> for JsNullable<DisplayNames>

Sourceยง

impl UpcastFrom<DisplayNames> for JsNullable<Object>

Sourceยง

impl UpcastFrom<DisplayNamesOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<DisplayNamesOptions> for JsNullable<DisplayNamesOptions>

Sourceยง

impl UpcastFrom<DisplayNamesOptions> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Duration> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Duration> for JsNullable<Duration>

Sourceยง

impl UpcastFrom<Duration> for JsNullable<Object>

Sourceยง

impl UpcastFrom<DurationFormat> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<DurationFormat> for JsNullable<DurationFormat>

Sourceยง

impl UpcastFrom<DurationFormat> for JsNullable<Object>

Sourceยง

impl UpcastFrom<DurationFormatOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<DurationFormatOptions> for JsNullable<DurationFormatOptions>

Sourceยง

impl UpcastFrom<DurationFormatOptions> for JsNullable<Object>

Sourceยง

impl UpcastFrom<DurationFormatPart> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<DurationFormatPart> for JsNullable<DurationFormatPart>

Sourceยง

impl UpcastFrom<DurationFormatPart> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Error> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Error> for JsNullable<Error>

Sourceยง

impl UpcastFrom<Error> for JsNullable<Object>

Sourceยง

impl UpcastFrom<ErrorOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ErrorOptions> for JsNullable<ErrorOptions>

Sourceยง

impl UpcastFrom<ErrorOptions> for JsNullable<Object>

Sourceยง

impl UpcastFrom<EvalError> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<EvalError> for JsNullable<EvalError>

Sourceยง

impl UpcastFrom<EvalError> for JsNullable<Object>

Sourceยง

impl UpcastFrom<EvalError> for JsNullable<Error>

Sourceยง

impl UpcastFrom<Exception> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Exception> for JsNullable<Exception>

Sourceยง

impl UpcastFrom<Exception> for JsNullable<Object>

Sourceยง

impl UpcastFrom<FinalizationRegistry> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<FinalizationRegistry> for JsNullable<FinalizationRegistry>

Sourceยง

impl UpcastFrom<FinalizationRegistry> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Float16Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Float16Array> for JsNullable<Float16Array>

Sourceยง

impl UpcastFrom<Float16Array> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Float32Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Float32Array> for JsNullable<Float32Array>

Sourceยง

impl UpcastFrom<Float32Array> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Float64Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Float64Array> for JsNullable<Float64Array>

Sourceยง

impl UpcastFrom<Float64Array> for JsNullable<Object>

Sourceยง

impl<T: JsFunction> UpcastFrom<Function<T>> for JsNullable<JsValue>

Sourceยง

impl<T: JsFunction> UpcastFrom<Function<T>> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<Generator<T>> for JsNullable<Generator<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T> UpcastFrom<Generator<T>> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Global> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Global> for JsNullable<Global>

Sourceยง

impl UpcastFrom<Global> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Instance> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Instance> for JsNullable<Instance>

Sourceยง

impl UpcastFrom<Instance> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Int8Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Int8Array> for JsNullable<Int8Array>

Sourceยง

impl UpcastFrom<Int8Array> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Int16Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Int16Array> for JsNullable<Int16Array>

Sourceยง

impl UpcastFrom<Int16Array> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Int32Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Int32Array> for JsNullable<Int32Array>

Sourceยง

impl UpcastFrom<Int32Array> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<Iterator<T>> for JsNullable<Iterator<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<IteratorNext<T>> for JsNullable<IteratorNext<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T> UpcastFrom<IteratorNext<T>> for JsNullable<Object>

Sourceยง

impl UpcastFrom<JsClosure> for JsNullable

Sourceยง

impl UpcastFrom<JsClosure> for JsNullable<JsClosure>

Sourceยง

impl UpcastFrom<JsError> for JsNullable

Sourceยง

impl<T, U> UpcastFrom<JsNullable<U>> for JsNullable<T>
where T: UpcastFrom<U>,

Sourceยง

impl<T, U> UpcastFrom<JsOption<U>> for JsNullable<T>
where T: UpcastFrom<U>,

Sourceยง

impl UpcastFrom<JsString> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<JsString> for JsNullable<JsString>

Sourceยง

impl UpcastFrom<JsString> for JsNullable<Object>

Sourceยง

impl UpcastFrom<JsValue> for JsNullable

Sourceยง

impl UpcastFrom<LinkError> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<LinkError> for JsNullable<LinkError>

Sourceยง

impl UpcastFrom<LinkError> for JsNullable<Error>

Sourceยง

impl UpcastFrom<ListFormat> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ListFormat> for JsNullable<ListFormat>

Sourceยง

impl UpcastFrom<ListFormat> for JsNullable<Object>

Sourceยง

impl UpcastFrom<ListFormatOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ListFormatOptions> for JsNullable<ListFormatOptions>

Sourceยง

impl UpcastFrom<ListFormatOptions> for JsNullable<Object>

Sourceยง

impl UpcastFrom<ListFormatPart> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ListFormatPart> for JsNullable<ListFormatPart>

Sourceยง

impl UpcastFrom<ListFormatPart> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Locale> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Locale> for JsNullable<Locale>

Sourceยง

impl UpcastFrom<Locale> for JsNullable<Object>

Sourceยง

impl UpcastFrom<LocaleMatcherOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<LocaleMatcherOptions> for JsNullable<LocaleMatcherOptions>

Sourceยง

impl UpcastFrom<LocaleMatcherOptions> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<K, V, __UpcastTarget0, __UpcastTarget1> UpcastFrom<Map<K, V>> for JsNullable<Map<__UpcastTarget0, __UpcastTarget1>>
where __UpcastTarget0: UpcastFrom<K>, __UpcastTarget1: UpcastFrom<V>,

Sourceยง

impl<K, V> UpcastFrom<Map<K, V>> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Memory> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Memory> for JsNullable<Memory>

Sourceยง

impl UpcastFrom<Memory> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Module> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Module> for JsNullable<Module>

Sourceยง

impl UpcastFrom<Module> for JsNullable<Object>

Sourceยง

impl<T> UpcastFrom<Null> for JsNullable<T>

Sourceยง

impl UpcastFrom<Number> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Number> for JsNullable<Number>

Sourceยง

impl UpcastFrom<Number> for JsNullable<Object>

Sourceยง

impl UpcastFrom<NumberFormat> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<NumberFormat> for JsNullable<NumberFormat>

Sourceยง

impl UpcastFrom<NumberFormat> for JsNullable<Object>

Sourceยง

impl UpcastFrom<NumberFormatOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<NumberFormatOptions> for JsNullable<NumberFormatOptions>

Sourceยง

impl UpcastFrom<NumberFormatOptions> for JsNullable<Object>

Sourceยง

impl UpcastFrom<NumberFormatPart> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<NumberFormatPart> for JsNullable<NumberFormatPart>

Sourceยง

impl UpcastFrom<NumberFormatPart> for JsNullable<Object>

Sourceยง

impl UpcastFrom<NumberRangeFormatPart> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<NumberRangeFormatPart> for JsNullable<NumberRangeFormatPart>

Sourceยง

impl UpcastFrom<NumberRangeFormatPart> for JsNullable<NumberFormatPart>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<Object<T>> for JsNullable<Object<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T, Target> UpcastFrom<Option<T>> for JsNullable<Option<Target>>
where Target: UpcastFrom<T>,

Sourceยง

impl UpcastFrom<PluralRules> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<PluralRules> for JsNullable<PluralRules>

Sourceยง

impl UpcastFrom<PluralRules> for JsNullable<Object>

Sourceยง

impl UpcastFrom<PluralRulesOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<PluralRulesOptions> for JsNullable<PluralRulesOptions>

Sourceยง

impl UpcastFrom<PluralRulesOptions> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<Promise<T>> for JsNullable<Promise<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T> UpcastFrom<Promise<T>> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<PromiseState<T>> for JsNullable<PromiseState<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T> UpcastFrom<PromiseState<T>> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<PropertyDescriptor<T>> for JsNullable<PropertyDescriptor<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T> UpcastFrom<PropertyDescriptor<T>> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Proxy> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Proxy> for JsNullable<Proxy>

Sourceยง

impl UpcastFrom<RangeError> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<RangeError> for JsNullable<RangeError>

Sourceยง

impl UpcastFrom<RangeError> for JsNullable<Error>

Sourceยง

impl UpcastFrom<RangeError> for JsNullable<Object>

Sourceยง

impl UpcastFrom<ReferenceError> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ReferenceError> for JsNullable<ReferenceError>

Sourceยง

impl UpcastFrom<ReferenceError> for JsNullable<Error>

Sourceยง

impl UpcastFrom<ReferenceError> for JsNullable<Object>

Sourceยง

impl UpcastFrom<RegExp> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<RegExp> for JsNullable<RegExp>

Sourceยง

impl UpcastFrom<RegExp> for JsNullable<Object>

Sourceยง

impl UpcastFrom<RegExpMatchArray> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<RegExpMatchArray> for JsNullable<RegExpMatchArray>

Sourceยง

impl UpcastFrom<RegExpMatchArray> for JsNullable<Object>

Sourceยง

impl UpcastFrom<RegExpMatchArray> for JsNullable<Array>

Sourceยง

impl UpcastFrom<RelativeTimeFormat> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<RelativeTimeFormat> for JsNullable<RelativeTimeFormat>

Sourceยง

impl UpcastFrom<RelativeTimeFormat> for JsNullable<Object>

Sourceยง

impl UpcastFrom<RelativeTimeFormatOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<RelativeTimeFormatOptions> for JsNullable<RelativeTimeFormatOptions>

Sourceยง

impl UpcastFrom<RelativeTimeFormatOptions> for JsNullable<Object>

Sourceยง

impl UpcastFrom<RelativeTimeFormatPart> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<RelativeTimeFormatPart> for JsNullable<RelativeTimeFormatPart>

Sourceยง

impl UpcastFrom<RelativeTimeFormatPart> for JsNullable<Object>

Sourceยง

impl UpcastFrom<ResolvedCollatorOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ResolvedCollatorOptions> for JsNullable<ResolvedCollatorOptions>

Sourceยง

impl UpcastFrom<ResolvedCollatorOptions> for JsNullable<CollatorOptions>

Sourceยง

impl UpcastFrom<ResolvedDateTimeFormatOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ResolvedDateTimeFormatOptions> for JsNullable<ResolvedDateTimeFormatOptions>

Sourceยง

impl UpcastFrom<ResolvedDateTimeFormatOptions> for JsNullable<DateTimeFormatOptions>

Sourceยง

impl UpcastFrom<ResolvedDisplayNamesOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ResolvedDisplayNamesOptions> for JsNullable<ResolvedDisplayNamesOptions>

Sourceยง

impl UpcastFrom<ResolvedDisplayNamesOptions> for JsNullable<DisplayNamesOptions>

Sourceยง

impl UpcastFrom<ResolvedDurationFormatOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ResolvedDurationFormatOptions> for JsNullable<ResolvedDurationFormatOptions>

Sourceยง

impl UpcastFrom<ResolvedDurationFormatOptions> for JsNullable<DurationFormatOptions>

Sourceยง

impl UpcastFrom<ResolvedListFormatOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ResolvedListFormatOptions> for JsNullable<ResolvedListFormatOptions>

Sourceยง

impl UpcastFrom<ResolvedListFormatOptions> for JsNullable<ListFormatOptions>

Sourceยง

impl UpcastFrom<ResolvedNumberFormatOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ResolvedNumberFormatOptions> for JsNullable<ResolvedNumberFormatOptions>

Sourceยง

impl UpcastFrom<ResolvedNumberFormatOptions> for JsNullable<NumberFormatOptions>

Sourceยง

impl UpcastFrom<ResolvedPluralRulesOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ResolvedPluralRulesOptions> for JsNullable<ResolvedPluralRulesOptions>

Sourceยง

impl UpcastFrom<ResolvedPluralRulesOptions> for JsNullable<PluralRulesOptions>

Sourceยง

impl UpcastFrom<ResolvedRelativeTimeFormatOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ResolvedRelativeTimeFormatOptions> for JsNullable<ResolvedRelativeTimeFormatOptions>

Sourceยง

impl UpcastFrom<ResolvedRelativeTimeFormatOptions> for JsNullable<RelativeTimeFormatOptions>

Sourceยง

impl UpcastFrom<ResolvedSegmenterOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<ResolvedSegmenterOptions> for JsNullable<ResolvedSegmenterOptions>

Sourceยง

impl UpcastFrom<ResolvedSegmenterOptions> for JsNullable<SegmenterOptions>

Sourceยง

impl<T, E, TargetT, TargetE> UpcastFrom<Result<T, E>> for JsNullable<Result<TargetT, TargetE>>
where TargetT: UpcastFrom<T>, TargetE: UpcastFrom<E>,

Sourceยง

impl UpcastFrom<RuntimeError> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<RuntimeError> for JsNullable<RuntimeError>

Sourceยง

impl UpcastFrom<RuntimeError> for JsNullable<Error>

Sourceยง

impl UpcastFrom<SegmentData> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<SegmentData> for JsNullable<SegmentData>

Sourceยง

impl UpcastFrom<SegmentData> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Segmenter> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Segmenter> for JsNullable<Segmenter>

Sourceยง

impl UpcastFrom<Segmenter> for JsNullable<Object>

Sourceยง

impl UpcastFrom<SegmenterOptions> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<SegmenterOptions> for JsNullable<SegmenterOptions>

Sourceยง

impl UpcastFrom<SegmenterOptions> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Segments> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Segments> for JsNullable<Segments>

Sourceยง

impl UpcastFrom<Segments> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<Set<T>> for JsNullable<Set<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T> UpcastFrom<Set<T>> for JsNullable<Object>

Sourceยง

impl UpcastFrom<SharedArrayBuffer> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<SharedArrayBuffer> for JsNullable<SharedArrayBuffer>

Sourceยง

impl UpcastFrom<SharedArrayBuffer> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Suspending> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Suspending> for JsNullable<Suspending>

Sourceยง

impl UpcastFrom<Suspending> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Symbol> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Symbol> for JsNullable<Symbol>

Sourceยง

impl UpcastFrom<SyntaxError> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<SyntaxError> for JsNullable<SyntaxError>

Sourceยง

impl UpcastFrom<SyntaxError> for JsNullable<Error>

Sourceยง

impl UpcastFrom<SyntaxError> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Table> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Table> for JsNullable<Table>

Sourceยง

impl UpcastFrom<Table> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Tag> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Tag> for JsNullable<Tag>

Sourceยง

impl UpcastFrom<Tag> for JsNullable<Object>

Sourceยง

impl UpcastFrom<TextInfo> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<TextInfo> for JsNullable<TextInfo>

Sourceยง

impl UpcastFrom<TextInfo> for JsNullable<Object>

Sourceยง

impl UpcastFrom<TypeError> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<TypeError> for JsNullable<TypeError>

Sourceยง

impl UpcastFrom<TypeError> for JsNullable<Error>

Sourceยง

impl UpcastFrom<TypeError> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Uint8Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Uint8Array> for JsNullable<Uint8Array>

Sourceยง

impl UpcastFrom<Uint8Array> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Uint8ClampedArray> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Uint8ClampedArray> for JsNullable<Uint8ClampedArray>

Sourceยง

impl UpcastFrom<Uint8ClampedArray> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Uint16Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Uint16Array> for JsNullable<Uint16Array>

Sourceยง

impl UpcastFrom<Uint16Array> for JsNullable<Object>

Sourceยง

impl UpcastFrom<Uint32Array> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<Uint32Array> for JsNullable<Uint32Array>

Sourceยง

impl UpcastFrom<Uint32Array> for JsNullable<Object>

Sourceยง

impl<T> UpcastFrom<Undefined> for JsNullable<T>

Sourceยง

impl UpcastFrom<UriError> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<UriError> for JsNullable<UriError>

Sourceยง

impl UpcastFrom<UriError> for JsNullable<Error>

Sourceยง

impl UpcastFrom<UriError> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<K, V, __UpcastTarget0, __UpcastTarget1> UpcastFrom<WeakMap<K, V>> for JsNullable<WeakMap<__UpcastTarget0, __UpcastTarget1>>
where __UpcastTarget0: UpcastFrom<K>, __UpcastTarget1: UpcastFrom<V>,

Sourceยง

impl<K, V> UpcastFrom<WeakMap<K, V>> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<WeakRef<T>> for JsNullable<WeakRef<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T> UpcastFrom<WeakRef<T>> for JsNullable<Object>

Sourceยง

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

Sourceยง

impl<T, __UpcastTarget0> UpcastFrom<WeakSet<T>> for JsNullable<WeakSet<__UpcastTarget0>>
where __UpcastTarget0: UpcastFrom<T>,

Sourceยง

impl<T> UpcastFrom<WeakSet<T>> for JsNullable<Object>

Sourceยง

impl UpcastFrom<WeekInfo> for JsNullable<JsValue>

Sourceยง

impl UpcastFrom<WeekInfo> for JsNullable<WeekInfo>

Sourceยง

impl UpcastFrom<WeekInfo> for JsNullable<Object>

Sourceยง

impl UpcastFrom<bool> for JsNullable

Sourceยง

impl UpcastFrom<char> for JsNullable

Sourceยง

impl UpcastFrom<f32> for JsNullable

Sourceยง

impl UpcastFrom<f32> for JsNullable<f64>

Sourceยง

impl UpcastFrom<f64> for JsNullable

Sourceยง

impl UpcastFrom<i8> for JsNullable

Sourceยง

impl UpcastFrom<i8> for JsNullable<i16>

Sourceยง

impl UpcastFrom<i8> for JsNullable<i32>

Sourceยง

impl UpcastFrom<i8> for JsNullable<i64>

Sourceยง

impl UpcastFrom<i8> for JsNullable<i128>

Sourceยง

impl UpcastFrom<i16> for JsNullable

Sourceยง

impl UpcastFrom<i16> for JsNullable<i32>

Sourceยง

impl UpcastFrom<i16> for JsNullable<i64>

Sourceยง

impl UpcastFrom<i16> for JsNullable<i128>

Sourceยง

impl UpcastFrom<i32> for JsNullable

Sourceยง

impl UpcastFrom<i32> for JsNullable<isize>

Sourceยง

impl UpcastFrom<i32> for JsNullable<i64>

Sourceยง

impl UpcastFrom<i32> for JsNullable<i128>

Sourceยง

impl UpcastFrom<i64> for JsNullable

Sourceยง

impl UpcastFrom<i64> for JsNullable<i128>

Sourceยง

impl UpcastFrom<i128> for JsNullable

Sourceยง

impl UpcastFrom<isize> for JsNullable

Sourceยง

impl UpcastFrom<isize> for JsNullable<i64>

Sourceยง

impl UpcastFrom<isize> for JsNullable<i128>

Sourceยง

impl UpcastFrom<u8> for JsNullable

Sourceยง

impl UpcastFrom<u8> for JsNullable<u16>

Sourceยง

impl UpcastFrom<u8> for JsNullable<u32>

Sourceยง

impl UpcastFrom<u8> for JsNullable<u64>

Sourceยง

impl UpcastFrom<u8> for JsNullable<u128>

Sourceยง

impl UpcastFrom<u16> for JsNullable

Sourceยง

impl UpcastFrom<u16> for JsNullable<u32>

Sourceยง

impl UpcastFrom<u16> for JsNullable<u64>

Sourceยง

impl UpcastFrom<u16> for JsNullable<u128>

Sourceยง

impl UpcastFrom<u32> for JsNullable

Sourceยง

impl UpcastFrom<u32> for JsNullable<usize>

Sourceยง

impl UpcastFrom<u32> for JsNullable<u64>

Sourceยง

impl UpcastFrom<u32> for JsNullable<u128>

Sourceยง

impl UpcastFrom<u64> for JsNullable

Sourceยง

impl UpcastFrom<u64> for JsNullable<u128>

Sourceยง

impl UpcastFrom<u128> for JsNullable

Sourceยง

impl UpcastFrom<usize> for JsNullable

Sourceยง

impl UpcastFrom<usize> for JsNullable<u64>

Sourceยง

impl UpcastFrom<usize> for JsNullable<u128>

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Sourceยง

type Target = T

๐Ÿ”ฌThis is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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> ToString for T
where T: Display + ?Sized,

Sourceยง

fn to_string(&self) -> String

Converts the given value to a String. 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.