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,
impl<T> JsNullable<T>where
T: JsGeneric,
Sourcepub fn new() -> JsNullable<T>
pub fn new() -> JsNullable<T>
Creates an empty JsNullable<T> representing null.
Sourcepub fn wrap(val: T) -> JsNullable<T>
pub fn wrap(val: T) -> JsNullable<T>
Wraps a value in a JsNullable<T>.
Sourcepub fn from_option(opt: Option<T>) -> JsNullable<T>
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().
Sourcepub fn as_option(&self) -> Option<T>
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.
Sourcepub fn into_option(self) -> Option<T>
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.
Sourcepub fn expect(self, msg: &str) -> T
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.
Sourcepub fn unwrap_or_default(self) -> Twhere
T: Default,
pub fn unwrap_or_default(self) -> Twhere
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.
Sourcepub fn unwrap_or_else<F>(self, f: F) -> Twhere
F: FnOnce() -> T,
pub fn unwrap_or_else<F>(self, f: F) -> Twhere
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>§
Sourcepub fn as_f64(&self) -> Option<f64>
pub fn as_f64(&self) -> Option<f64>
Returns the f64 value of this JS value if it’s an instance of a
number.
If this JS value is not an instance of a number then this returns
None.
Sourcepub fn as_string(&self) -> Option<String>
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.
Sourcepub fn as_bool(&self) -> Option<bool>
pub fn as_bool(&self) -> Option<bool>
Returns the bool value of this JS value if it’s an instance of a
boolean.
If this JS value is not an instance of a boolean then this returns
None.
Sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Tests whether this JS value is undefined
Sourcepub fn is_null_or_undefined(&self) -> bool
pub fn is_null_or_undefined(&self) -> bool
Tests whether this JS value is null or undefined
Sourcepub fn is_function(&self) -> bool
pub fn is_function(&self) -> bool
Tests whether the type of this JS value is function.
Sourcepub fn js_in(&self, obj: &JsValue) -> bool
pub fn js_in(&self, obj: &JsValue) -> bool
Applies the binary in JS operator on the two JsValues.
Sourcepub fn loose_eq(&self, other: &JsValue) -> bool
pub fn loose_eq(&self, other: &JsValue) -> bool
Compare two JsValues for equality, using the == operator in JS.
Sourcepub fn unsigned_shr(&self, rhs: &JsValue) -> u32
pub fn unsigned_shr(&self, rhs: &JsValue) -> u32
Applies the binary >>> JS operator on the two JsValues.
Sourcepub fn checked_div(&self, rhs: &JsValue) -> JsValue
pub fn checked_div(&self, rhs: &JsValue) -> JsValue
Applies the binary / JS operator on two JsValues, catching and returning any RangeError thrown.
Sourcepub fn pow(&self, rhs: &JsValue) -> JsValue
pub fn pow(&self, rhs: &JsValue) -> JsValue
Applies the binary ** JS operator on the two JsValues.
Sourcepub fn lt(&self, other: &JsValue) -> bool
pub fn lt(&self, other: &JsValue) -> bool
Applies the binary < JS operator on the two JsValues.
Sourcepub fn le(&self, other: &JsValue) -> bool
pub fn le(&self, other: &JsValue) -> bool
Applies the binary <= JS operator on the two JsValues.
Sourcepub fn ge(&self, other: &JsValue) -> bool
pub fn ge(&self, other: &JsValue) -> bool
Applies the binary >= JS operator on the two JsValues.
Sourcepub fn gt(&self, other: &JsValue) -> bool
pub fn gt(&self, other: &JsValue) -> bool
Applies the binary > JS operator on the two JsValues.
Sourcepub fn unchecked_into_f64(&self) -> f64
pub fn unchecked_into_f64(&self) -> f64
Applies the unary + JS operator on a JsValue. Can throw.
Trait Implementations§
Source§impl<T> AsRef<JsNullable<T>> for JsNullable<T>
impl<T> AsRef<JsNullable<T>> for JsNullable<T>
Source§fn as_ref(&self) -> &JsNullable<T>
fn as_ref(&self) -> &JsNullable<T>
Source§impl<T> AsRef<JsValue> for JsNullable<T>
impl<T> AsRef<JsValue> for JsNullable<T>
Source§impl<T> Clone for JsNullable<T>where
T: Clone,
impl<T> Clone for JsNullable<T>where
T: Clone,
Source§fn clone(&self) -> JsNullable<T>
fn clone(&self) -> JsNullable<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<T> Debug for JsNullable<T>
impl<T> Debug for JsNullable<T>
Source§impl<T> Default for JsNullable<T>where
T: JsGeneric,
impl<T> Default for JsNullable<T>where
T: JsGeneric,
Source§fn default() -> JsNullable<T>
fn default() -> JsNullable<T>
Source§impl<T> Deref for JsNullable<T>
impl<T> Deref for JsNullable<T>
Source§impl<T> Display for JsNullable<T>
impl<T> Display for JsNullable<T>
Source§impl<T> ErasableGeneric for JsNullable<T>
impl<T> ErasableGeneric for JsNullable<T>
Source§impl From<JsValue> for JsNullable
impl From<JsValue> for JsNullable
Source§fn from(obj: JsValue) -> JsNullable
fn from(obj: JsValue) -> JsNullable
Source§impl<T> From<Nullable<T>> for JsNullable<T>where
T: JsGeneric,
impl<T> From<Nullable<T>> for JsNullable<T>where
T: JsGeneric,
Source§fn from(nullable: Nullable<T>) -> JsNullable<T>
fn from(nullable: Nullable<T>) -> JsNullable<T>
Source§impl<T> From<Option<Nullable<T>>> for JsNullable<T>where
T: JsGeneric,
None is undefined, which JsNullable admits as its other empty state.
impl<T> From<Option<Nullable<T>>> for JsNullable<T>where
T: JsGeneric,
None is undefined, which JsNullable admits as its other empty state.
Source§impl<T> FromWasmAbi for JsNullable<T>
impl<T> FromWasmAbi for JsNullable<T>
Source§type Abi = <JsValue as FromWasmAbi>::Abi
type Abi = <JsValue as FromWasmAbi>::Abi
Source§unsafe fn from_abi(js: <JsNullable<T> as FromWasmAbi>::Abi) -> JsNullable<T>
unsafe fn from_abi(js: <JsNullable<T> as FromWasmAbi>::Abi) -> JsNullable<T>
Source§impl<T> IntoJsGeneric for JsNullable<T>where
JsNullable<T>: JsGeneric,
impl<T> IntoJsGeneric for JsNullable<T>where
JsNullable<T>: JsGeneric,
Source§type JsCanon = JsNullable<T>
type JsCanon = JsNullable<T>
JsGeneric form of this type.Source§fn to_js(self) -> JsNullable<T>
fn to_js(self) -> JsNullable<T>
JsGeneric value for self.Source§impl<T> IntoWasmAbi for JsNullable<T>
impl<T> IntoWasmAbi for JsNullable<T>
Source§type Abi = <JsValue as IntoWasmAbi>::Abi
type Abi = <JsValue as IntoWasmAbi>::Abi
Source§fn into_abi(self) -> <JsNullable<T> as IntoWasmAbi>::Abi
fn into_abi(self) -> <JsNullable<T> as IntoWasmAbi>::Abi
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>
impl<'__wbg_ref, T> IntoWasmAbi for &'__wbg_ref JsNullable<T>
Source§type Abi = <&'__wbg_ref JsValue as IntoWasmAbi>::Abi
type Abi = <&'__wbg_ref JsValue as IntoWasmAbi>::Abi
Source§fn into_abi(self) -> <&'__wbg_ref JsNullable<T> as IntoWasmAbi>::Abi
fn into_abi(self) -> <&'__wbg_ref JsNullable<T> as IntoWasmAbi>::Abi
self into Self::Abi so that it can be sent across the wasm
ABI boundary.Source§impl<T> JsCast for JsNullable<T>
impl<T> JsCast for JsNullable<T>
Source§fn instanceof(val: &JsValue) -> bool
fn instanceof(val: &JsValue) -> bool
instanceof check to see whether the JsValue
provided is an instance of this type. Read moreSource§fn unchecked_from_js(val: JsValue) -> JsNullable<T>
fn unchecked_from_js(val: JsValue) -> JsNullable<T>
Source§fn unchecked_from_js_ref(val: &JsValue) -> &JsNullable<T>
fn unchecked_from_js_ref(val: &JsValue) -> &JsNullable<T>
Source§fn has_type<T>(&self) -> boolwhere
T: JsCast,
fn has_type<T>(&self) -> boolwhere
T: JsCast,
T. Read moreSource§fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
fn dyn_into<T>(self) -> Result<T, Self>where
T: JsCast,
T. Read moreSource§fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
fn dyn_ref<T>(&self) -> Option<&T>where
T: JsCast,
T. Read moreSource§fn unchecked_into<T>(self) -> Twhere
T: JsCast,
fn unchecked_into<T>(self) -> Twhere
T: JsCast,
Source§fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
fn unchecked_ref<T>(&self) -> &Twhere
T: JsCast,
Source§impl<T> LongRefFromWasmAbi for JsNullable<T>
impl<T> LongRefFromWasmAbi for JsNullable<T>
Source§type Anchor = JsNullable<T>
type Anchor = JsNullable<T>
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(
js: <JsNullable<T> as LongRefFromWasmAbi>::Abi,
) -> <JsNullable<T> as LongRefFromWasmAbi>::Anchor
unsafe fn long_ref_from_abi( js: <JsNullable<T> as LongRefFromWasmAbi>::Abi, ) -> <JsNullable<T> as LongRefFromWasmAbi>::Anchor
RefFromWasmAbi::ref_from_abiSource§impl<T> NullableFromWasmAbi for JsNullable<T>
impl<T> NullableFromWasmAbi for JsNullable<T>
Source§fn is_null(abi: &<JsNullable<T> as MaybeFromWasmAbi>::MaybeAbi) -> bool
fn is_null(abi: &<JsNullable<T> as MaybeFromWasmAbi>::MaybeAbi) -> bool
Nullable::Null.Source§impl<T> NullableIntoWasmAbi for JsNullable<T>
impl<T> NullableIntoWasmAbi for JsNullable<T>
Source§fn null() -> <JsNullable<T> as MaybeIntoWasmAbi>::MaybeAbi
fn null() -> <JsNullable<T> as MaybeIntoWasmAbi>::MaybeAbi
Source§impl<'__wbg_ref, T> NullableIntoWasmAbi for &'__wbg_ref JsNullable<T>
impl<'__wbg_ref, T> NullableIntoWasmAbi for &'__wbg_ref JsNullable<T>
Source§fn null() -> <&'__wbg_ref JsNullable<T> as MaybeIntoWasmAbi>::MaybeAbi
fn null() -> <&'__wbg_ref JsNullable<T> as MaybeIntoWasmAbi>::MaybeAbi
Source§impl<T> OptionFromWasmAbi for JsNullable<T>
impl<T> OptionFromWasmAbi for JsNullable<T>
Source§fn is_none(abi: &<JsNullable<T> as FromWasmAbi>::Abi) -> bool
fn is_none(abi: &<JsNullable<T> as FromWasmAbi>::Abi) -> bool
None, and otherwise it will be passed to
FromWasmAbi.Source§impl<T> OptionIntoWasmAbi for JsNullable<T>
impl<T> OptionIntoWasmAbi for JsNullable<T>
Source§fn none() -> <JsNullable<T> as IntoWasmAbi>::Abi
fn none() -> <JsNullable<T> as IntoWasmAbi>::Abi
None branch of this option. Read moreSource§impl<'__wbg_ref, T> OptionIntoWasmAbi for &'__wbg_ref JsNullable<T>
impl<'__wbg_ref, T> OptionIntoWasmAbi for &'__wbg_ref JsNullable<T>
Source§fn none() -> <&'__wbg_ref JsNullable<T> as IntoWasmAbi>::Abi
fn none() -> <&'__wbg_ref JsNullable<T> as IntoWasmAbi>::Abi
None branch of this option. Read moreSource§impl<T> PartialEq for JsNullable<T>
impl<T> PartialEq for JsNullable<T>
Source§impl<T> Promising for JsNullable<T>
impl<T> Promising for JsNullable<T>
Source§type Resolution = JsNullable<T>
type Resolution = JsNullable<T>
Source§impl<T> RefFromWasmAbi for JsNullable<T>
impl<T> RefFromWasmAbi for JsNullable<T>
Source§type Abi = <JsValue as RefFromWasmAbi>::Abi
type Abi = <JsValue as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = ManuallyDrop<JsNullable<T>>
type Anchor = ManuallyDrop<JsNullable<T>>
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
unsafe fn ref_from_abi( js: <JsNullable<T> as RefFromWasmAbi>::Abi, ) -> <JsNullable<T> as RefFromWasmAbi>::Anchor
impl UpcastFrom<&str> for JsNullable
impl<T> UpcastFrom<()> for JsNullable<T>
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>,
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>,
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>,
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>,
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>,
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>,
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>,
impl<T1, Target1> UpcastFrom<(T1,)> for JsNullable<(Target1,)>
impl<T, Target> UpcastFrom<*const T> for JsNullable<*const Target>where
Target: UpcastFrom<T>,
impl UpcastFrom<AggregateError> for JsNullable<JsValue>
impl UpcastFrom<AggregateError> for JsNullable<AggregateError>
impl UpcastFrom<AggregateError> for JsNullable<Error>
impl UpcastFrom<AggregateError> for JsNullable<Object>
impl<T> UpcastFrom<Array<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<Array<T>> for JsNullable<Array<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T> UpcastFrom<Array<T>> for JsNullable<Object>
impl UpcastFrom<ArrayBuffer> for JsNullable<JsValue>
impl UpcastFrom<ArrayBuffer> for JsNullable<ArrayBuffer>
impl UpcastFrom<ArrayBuffer> for JsNullable<Object>
impl UpcastFrom<ArrayBufferOptions> for JsNullable<JsValue>
impl UpcastFrom<ArrayBufferOptions> for JsNullable<ArrayBufferOptions>
impl UpcastFrom<ArrayBufferOptions> for JsNullable<Object>
impl<T1, T2, Target> UpcastFrom<ArrayTuple<(T1, T2)>> for JsNullable<Array<Target>>where
Target: UpcastFrom<T1> + UpcastFrom<T2>,
impl<T1, T2, T3, Target> UpcastFrom<ArrayTuple<(T1, T2, T3)>> for JsNullable<Array<Target>>
impl<T1, T2, T3, T4, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4)>> for JsNullable<Array<Target>>
impl<T1, T2, T3, T4, T5, Target> UpcastFrom<ArrayTuple<(T1, T2, T3, T4, T5)>> for JsNullable<Array<Target>>
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>,
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>,
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>,
impl<T1, Target> UpcastFrom<ArrayTuple<(T1,)>> for JsNullable<Array<Target>>where
Target: UpcastFrom<T1>,
impl<T: JsTuple> UpcastFrom<ArrayTuple<T>> for JsNullable<JsValue>
impl UpcastFrom<AsyncDisposableStack> for JsNullable<JsValue>
impl UpcastFrom<AsyncDisposableStack> for JsNullable<AsyncDisposableStack>
impl UpcastFrom<AsyncDisposableStack> for JsNullable<Object>
impl<T> UpcastFrom<AsyncGenerator<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<AsyncGenerator<T>> for JsNullable<AsyncGenerator<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T> UpcastFrom<AsyncGenerator<T>> for JsNullable<Object>
impl<T> UpcastFrom<AsyncIterator<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<AsyncIterator<T>> for JsNullable<AsyncIterator<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl UpcastFrom<Base64Options> for JsNullable<JsValue>
impl UpcastFrom<Base64Options> for JsNullable<Base64Options>
impl UpcastFrom<Base64Options> for JsNullable<Object>
impl UpcastFrom<BigInt64Array> for JsNullable<JsValue>
impl UpcastFrom<BigInt64Array> for JsNullable<BigInt64Array>
impl UpcastFrom<BigInt64Array> for JsNullable<Object>
impl UpcastFrom<BigInt> for JsNullable<JsValue>
impl UpcastFrom<BigInt> for JsNullable<BigInt>
impl UpcastFrom<BigInt> for JsNullable<Object>
impl UpcastFrom<BigUint64Array> for JsNullable<JsValue>
impl UpcastFrom<BigUint64Array> for JsNullable<BigUint64Array>
impl UpcastFrom<BigUint64Array> for JsNullable<Object>
impl UpcastFrom<Boolean> for JsNullable<JsValue>
impl UpcastFrom<Boolean> for JsNullable<Boolean>
impl UpcastFrom<Boolean> for JsNullable<Object>
impl UpcastFrom<Collator> for JsNullable<JsValue>
impl UpcastFrom<Collator> for JsNullable<Collator>
impl UpcastFrom<Collator> for JsNullable<Object>
impl UpcastFrom<CollatorOptions> for JsNullable<JsValue>
impl UpcastFrom<CollatorOptions> for JsNullable<CollatorOptions>
impl UpcastFrom<CollatorOptions> for JsNullable<Object>
impl UpcastFrom<CompileError> for JsNullable<JsValue>
impl UpcastFrom<CompileError> for JsNullable<CompileError>
impl UpcastFrom<CompileError> for JsNullable<Error>
impl UpcastFrom<CompileOptions> for JsNullable<JsValue>
impl UpcastFrom<CompileOptions> for JsNullable<CompileOptions>
impl UpcastFrom<CompileOptions> for JsNullable<Object>
impl UpcastFrom<DataView> for JsNullable<JsValue>
impl UpcastFrom<DataView> for JsNullable<DataView>
impl UpcastFrom<DataView> for JsNullable<Object>
impl UpcastFrom<Date> for JsNullable<JsValue>
impl UpcastFrom<Date> for JsNullable<Date>
impl UpcastFrom<Date> for JsNullable<Object>
impl UpcastFrom<DateTimeFormat> for JsNullable<JsValue>
impl UpcastFrom<DateTimeFormat> for JsNullable<DateTimeFormat>
impl UpcastFrom<DateTimeFormat> for JsNullable<Object>
impl UpcastFrom<DateTimeFormatOptions> for JsNullable<JsValue>
impl UpcastFrom<DateTimeFormatOptions> for JsNullable<DateTimeFormatOptions>
impl UpcastFrom<DateTimeFormatOptions> for JsNullable<Object>
impl UpcastFrom<DateTimeFormatPart> for JsNullable<JsValue>
impl UpcastFrom<DateTimeFormatPart> for JsNullable<DateTimeFormatPart>
impl UpcastFrom<DateTimeFormatPart> for JsNullable<Object>
impl UpcastFrom<DateTimeRangeFormatPart> for JsNullable<JsValue>
impl UpcastFrom<DateTimeRangeFormatPart> for JsNullable<DateTimeRangeFormatPart>
impl UpcastFrom<DateTimeRangeFormatPart> for JsNullable<DateTimeFormatPart>
impl UpcastFrom<DisplayNames> for JsNullable<JsValue>
impl UpcastFrom<DisplayNames> for JsNullable<DisplayNames>
impl UpcastFrom<DisplayNames> for JsNullable<Object>
impl UpcastFrom<DisplayNamesOptions> for JsNullable<JsValue>
impl UpcastFrom<DisplayNamesOptions> for JsNullable<DisplayNamesOptions>
impl UpcastFrom<DisplayNamesOptions> for JsNullable<Object>
impl UpcastFrom<DisposableStack> for JsNullable<JsValue>
impl UpcastFrom<DisposableStack> for JsNullable<DisposableStack>
impl UpcastFrom<DisposableStack> for JsNullable<Object>
impl UpcastFrom<Duration> for JsNullable<JsValue>
impl UpcastFrom<Duration> for JsNullable<Duration>
impl UpcastFrom<Duration> for JsNullable<Object>
impl UpcastFrom<DurationFormat> for JsNullable<JsValue>
impl UpcastFrom<DurationFormat> for JsNullable<DurationFormat>
impl UpcastFrom<DurationFormat> for JsNullable<Object>
impl UpcastFrom<DurationFormatOptions> for JsNullable<JsValue>
impl UpcastFrom<DurationFormatOptions> for JsNullable<DurationFormatOptions>
impl UpcastFrom<DurationFormatOptions> for JsNullable<Object>
impl UpcastFrom<DurationFormatPart> for JsNullable<JsValue>
impl UpcastFrom<DurationFormatPart> for JsNullable<DurationFormatPart>
impl UpcastFrom<DurationFormatPart> for JsNullable<Object>
impl UpcastFrom<Error> for JsNullable<JsValue>
impl UpcastFrom<Error> for JsNullable<Error>
impl UpcastFrom<Error> for JsNullable<Object>
impl UpcastFrom<ErrorOptions> for JsNullable<JsValue>
impl UpcastFrom<ErrorOptions> for JsNullable<ErrorOptions>
impl UpcastFrom<ErrorOptions> for JsNullable<Object>
impl UpcastFrom<EvalError> for JsNullable<JsValue>
impl UpcastFrom<EvalError> for JsNullable<EvalError>
impl UpcastFrom<EvalError> for JsNullable<Object>
impl UpcastFrom<EvalError> for JsNullable<Error>
impl UpcastFrom<Exception> for JsNullable<JsValue>
impl UpcastFrom<Exception> for JsNullable<Exception>
impl UpcastFrom<Exception> for JsNullable<Object>
impl UpcastFrom<FinalizationRegistry> for JsNullable<JsValue>
impl UpcastFrom<FinalizationRegistry> for JsNullable<FinalizationRegistry>
impl UpcastFrom<FinalizationRegistry> for JsNullable<Object>
impl UpcastFrom<Float16Array> for JsNullable<JsValue>
impl UpcastFrom<Float16Array> for JsNullable<Float16Array>
impl UpcastFrom<Float16Array> for JsNullable<Object>
impl UpcastFrom<Float32Array> for JsNullable<JsValue>
impl UpcastFrom<Float32Array> for JsNullable<Float32Array>
impl UpcastFrom<Float32Array> for JsNullable<Object>
impl UpcastFrom<Float64Array> for JsNullable<JsValue>
impl UpcastFrom<Float64Array> for JsNullable<Float64Array>
impl UpcastFrom<Float64Array> for JsNullable<Object>
impl<T: JsFunction> UpcastFrom<Function<T>> for JsNullable<JsValue>
impl<T: JsFunction> UpcastFrom<Function<T>> for JsNullable<Object>
impl<T> UpcastFrom<Generator<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<Generator<T>> for JsNullable<Generator<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T> UpcastFrom<Generator<T>> for JsNullable<Object>
impl UpcastFrom<Global> for JsNullable<JsValue>
impl UpcastFrom<Global> for JsNullable<Global>
impl UpcastFrom<Global> for JsNullable<Object>
impl UpcastFrom<Instance> for JsNullable<JsValue>
impl UpcastFrom<Instance> for JsNullable<Instance>
impl UpcastFrom<Instance> for JsNullable<Object>
impl UpcastFrom<InstantiatedSource> for JsNullable<JsValue>
impl UpcastFrom<InstantiatedSource> for JsNullable<InstantiatedSource>
impl UpcastFrom<InstantiatedSource> for JsNullable<Object>
impl UpcastFrom<Int8Array> for JsNullable<JsValue>
impl UpcastFrom<Int8Array> for JsNullable<Int8Array>
impl UpcastFrom<Int8Array> for JsNullable<Object>
impl UpcastFrom<Int16Array> for JsNullable<JsValue>
impl UpcastFrom<Int16Array> for JsNullable<Int16Array>
impl UpcastFrom<Int16Array> for JsNullable<Object>
impl UpcastFrom<Int32Array> for JsNullable<JsValue>
impl UpcastFrom<Int32Array> for JsNullable<Int32Array>
impl UpcastFrom<Int32Array> for JsNullable<Object>
impl<T> UpcastFrom<Iterator<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<Iterator<T>> for JsNullable<Iterator<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T> UpcastFrom<IteratorNext<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<IteratorNext<T>> for JsNullable<IteratorNext<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T> UpcastFrom<IteratorNext<T>> for JsNullable<Object>
impl UpcastFrom<JsClosure> for JsNullable
impl UpcastFrom<JsClosure> for JsNullable<JsClosure>
impl UpcastFrom<JsError> for JsNullable
impl<T, U> UpcastFrom<JsNullable<U>> for JsNullable<T>where
T: UpcastFrom<U>,
impl<T, U> UpcastFrom<JsOption<U>> for JsNullable<T>where
T: UpcastFrom<U>,
impl UpcastFrom<JsString> for JsNullable<JsValue>
impl UpcastFrom<JsString> for JsNullable<JsString>
impl UpcastFrom<JsString> for JsNullable<Object>
impl UpcastFrom<JsValue> for JsNullable
impl UpcastFrom<LinkError> for JsNullable<JsValue>
impl UpcastFrom<LinkError> for JsNullable<LinkError>
impl UpcastFrom<LinkError> for JsNullable<Error>
impl UpcastFrom<ListFormat> for JsNullable<JsValue>
impl UpcastFrom<ListFormat> for JsNullable<ListFormat>
impl UpcastFrom<ListFormat> for JsNullable<Object>
impl UpcastFrom<ListFormatOptions> for JsNullable<JsValue>
impl UpcastFrom<ListFormatOptions> for JsNullable<ListFormatOptions>
impl UpcastFrom<ListFormatOptions> for JsNullable<Object>
impl UpcastFrom<ListFormatPart> for JsNullable<JsValue>
impl UpcastFrom<ListFormatPart> for JsNullable<ListFormatPart>
impl UpcastFrom<ListFormatPart> for JsNullable<Object>
impl UpcastFrom<Locale> for JsNullable<JsValue>
impl UpcastFrom<Locale> for JsNullable<Locale>
impl UpcastFrom<Locale> for JsNullable<Object>
impl UpcastFrom<LocaleMatcherOptions> for JsNullable<JsValue>
impl UpcastFrom<LocaleMatcherOptions> for JsNullable<LocaleMatcherOptions>
impl UpcastFrom<LocaleMatcherOptions> for JsNullable<Object>
impl<K, V> UpcastFrom<Map<K, V>> for JsNullable<JsValue>
impl<K, V, __UpcastTarget0, __UpcastTarget1> UpcastFrom<Map<K, V>> for JsNullable<Map<__UpcastTarget0, __UpcastTarget1>>where
__UpcastTarget0: UpcastFrom<K>,
__UpcastTarget1: UpcastFrom<V>,
impl<K, V> UpcastFrom<Map<K, V>> for JsNullable<Object>
impl UpcastFrom<Memory> for JsNullable<JsValue>
impl UpcastFrom<Memory> for JsNullable<Memory>
impl UpcastFrom<Memory> for JsNullable<Object>
impl UpcastFrom<Module> for JsNullable<JsValue>
impl UpcastFrom<Module> for JsNullable<Module>
impl UpcastFrom<Module> for JsNullable<Object>
impl<T> UpcastFrom<Null> for JsNullable<T>
impl<T, Target> UpcastFrom<Nullable<T>> for JsNullable<Nullable<Target>>where
Target: UpcastFrom<T>,
impl UpcastFrom<Number> for JsNullable<JsValue>
impl UpcastFrom<Number> for JsNullable<Number>
impl UpcastFrom<Number> for JsNullable<Object>
impl UpcastFrom<NumberFormat> for JsNullable<JsValue>
impl UpcastFrom<NumberFormat> for JsNullable<NumberFormat>
impl UpcastFrom<NumberFormat> for JsNullable<Object>
impl UpcastFrom<NumberFormatOptions> for JsNullable<JsValue>
impl UpcastFrom<NumberFormatOptions> for JsNullable<NumberFormatOptions>
impl UpcastFrom<NumberFormatOptions> for JsNullable<Object>
impl UpcastFrom<NumberFormatPart> for JsNullable<JsValue>
impl UpcastFrom<NumberFormatPart> for JsNullable<NumberFormatPart>
impl UpcastFrom<NumberFormatPart> for JsNullable<Object>
impl UpcastFrom<NumberRangeFormatPart> for JsNullable<JsValue>
impl UpcastFrom<NumberRangeFormatPart> for JsNullable<NumberRangeFormatPart>
impl UpcastFrom<NumberRangeFormatPart> for JsNullable<NumberFormatPart>
impl<T> UpcastFrom<Object<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<Object<T>> for JsNullable<Object<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T, Target> UpcastFrom<Option<T>> for JsNullable<Option<Target>>where
Target: UpcastFrom<T>,
impl UpcastFrom<PluralRules> for JsNullable<JsValue>
impl UpcastFrom<PluralRules> for JsNullable<PluralRules>
impl UpcastFrom<PluralRules> for JsNullable<Object>
impl UpcastFrom<PluralRulesOptions> for JsNullable<JsValue>
impl UpcastFrom<PluralRulesOptions> for JsNullable<PluralRulesOptions>
impl UpcastFrom<PluralRulesOptions> for JsNullable<Object>
impl<T, E> UpcastFrom<Promise<T, E>> for JsNullable<JsValue>
impl<T, E, __UpcastTarget0, __UpcastTarget1> UpcastFrom<Promise<T, E>> for JsNullable<Promise<__UpcastTarget0, __UpcastTarget1>>where
__UpcastTarget0: UpcastFrom<T>,
__UpcastTarget1: UpcastFrom<E>,
impl<T, E> UpcastFrom<Promise<T, E>> for JsNullable<Object>
impl<T, E> UpcastFrom<PromiseState<T, E>> for JsNullable<JsValue>
impl<T, E, __UpcastTarget0, __UpcastTarget1> UpcastFrom<PromiseState<T, E>> for JsNullable<PromiseState<__UpcastTarget0, __UpcastTarget1>>where
__UpcastTarget0: UpcastFrom<T>,
__UpcastTarget1: UpcastFrom<E>,
impl<T, E> UpcastFrom<PromiseState<T, E>> for JsNullable<Object>
impl<T, E> UpcastFrom<PromiseWithResolvers<T, E>> for JsNullable<PromiseWithResolvers<T, E>>
impl<T, E> UpcastFrom<PromiseWithResolvers<T, E>> for JsNullable<JsValue>
impl<T, E> UpcastFrom<PromiseWithResolvers<T, E>> for JsNullable<Object>
impl<T> UpcastFrom<PropertyDescriptor<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<PropertyDescriptor<T>> for JsNullable<PropertyDescriptor<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T> UpcastFrom<PropertyDescriptor<T>> for JsNullable<Object>
impl UpcastFrom<Proxy> for JsNullable<JsValue>
impl UpcastFrom<Proxy> for JsNullable<Proxy>
impl UpcastFrom<RangeError> for JsNullable<JsValue>
impl UpcastFrom<RangeError> for JsNullable<RangeError>
impl UpcastFrom<RangeError> for JsNullable<Error>
impl UpcastFrom<RangeError> for JsNullable<Object>
impl UpcastFrom<ReferenceError> for JsNullable<JsValue>
impl UpcastFrom<ReferenceError> for JsNullable<ReferenceError>
impl UpcastFrom<ReferenceError> for JsNullable<Error>
impl UpcastFrom<ReferenceError> for JsNullable<Object>
impl UpcastFrom<RegExp> for JsNullable<JsValue>
impl UpcastFrom<RegExp> for JsNullable<RegExp>
impl UpcastFrom<RegExp> for JsNullable<Object>
impl UpcastFrom<RegExpMatchArray> for JsNullable<JsValue>
impl UpcastFrom<RegExpMatchArray> for JsNullable<RegExpMatchArray>
impl UpcastFrom<RegExpMatchArray> for JsNullable<Object>
impl UpcastFrom<RegExpMatchArray> for JsNullable<Array>
impl UpcastFrom<RelativeTimeFormat> for JsNullable<JsValue>
impl UpcastFrom<RelativeTimeFormat> for JsNullable<RelativeTimeFormat>
impl UpcastFrom<RelativeTimeFormat> for JsNullable<Object>
impl UpcastFrom<RelativeTimeFormatOptions> for JsNullable<JsValue>
impl UpcastFrom<RelativeTimeFormatOptions> for JsNullable<RelativeTimeFormatOptions>
impl UpcastFrom<RelativeTimeFormatOptions> for JsNullable<Object>
impl UpcastFrom<RelativeTimeFormatPart> for JsNullable<JsValue>
impl UpcastFrom<RelativeTimeFormatPart> for JsNullable<RelativeTimeFormatPart>
impl UpcastFrom<RelativeTimeFormatPart> for JsNullable<Object>
impl UpcastFrom<ResolvedCollatorOptions> for JsNullable<JsValue>
impl UpcastFrom<ResolvedCollatorOptions> for JsNullable<ResolvedCollatorOptions>
impl UpcastFrom<ResolvedCollatorOptions> for JsNullable<CollatorOptions>
impl UpcastFrom<ResolvedDateTimeFormatOptions> for JsNullable<JsValue>
impl UpcastFrom<ResolvedDateTimeFormatOptions> for JsNullable<ResolvedDateTimeFormatOptions>
impl UpcastFrom<ResolvedDateTimeFormatOptions> for JsNullable<DateTimeFormatOptions>
impl UpcastFrom<ResolvedDisplayNamesOptions> for JsNullable<JsValue>
impl UpcastFrom<ResolvedDisplayNamesOptions> for JsNullable<ResolvedDisplayNamesOptions>
impl UpcastFrom<ResolvedDisplayNamesOptions> for JsNullable<DisplayNamesOptions>
impl UpcastFrom<ResolvedDurationFormatOptions> for JsNullable<JsValue>
impl UpcastFrom<ResolvedDurationFormatOptions> for JsNullable<ResolvedDurationFormatOptions>
impl UpcastFrom<ResolvedDurationFormatOptions> for JsNullable<DurationFormatOptions>
impl UpcastFrom<ResolvedListFormatOptions> for JsNullable<JsValue>
impl UpcastFrom<ResolvedListFormatOptions> for JsNullable<ResolvedListFormatOptions>
impl UpcastFrom<ResolvedListFormatOptions> for JsNullable<ListFormatOptions>
impl UpcastFrom<ResolvedNumberFormatOptions> for JsNullable<JsValue>
impl UpcastFrom<ResolvedNumberFormatOptions> for JsNullable<ResolvedNumberFormatOptions>
impl UpcastFrom<ResolvedNumberFormatOptions> for JsNullable<NumberFormatOptions>
impl UpcastFrom<ResolvedPluralRulesOptions> for JsNullable<JsValue>
impl UpcastFrom<ResolvedPluralRulesOptions> for JsNullable<ResolvedPluralRulesOptions>
impl UpcastFrom<ResolvedPluralRulesOptions> for JsNullable<PluralRulesOptions>
impl UpcastFrom<ResolvedRelativeTimeFormatOptions> for JsNullable<JsValue>
impl UpcastFrom<ResolvedRelativeTimeFormatOptions> for JsNullable<ResolvedRelativeTimeFormatOptions>
impl UpcastFrom<ResolvedRelativeTimeFormatOptions> for JsNullable<RelativeTimeFormatOptions>
impl UpcastFrom<ResolvedSegmenterOptions> for JsNullable<JsValue>
impl UpcastFrom<ResolvedSegmenterOptions> for JsNullable<ResolvedSegmenterOptions>
impl UpcastFrom<ResolvedSegmenterOptions> for JsNullable<SegmenterOptions>
impl<T, E, TargetT, TargetE> UpcastFrom<Result<T, E>> for JsNullable<Result<TargetT, TargetE>>where
TargetT: UpcastFrom<T>,
TargetE: UpcastFrom<E>,
impl UpcastFrom<RuntimeError> for JsNullable<JsValue>
impl UpcastFrom<RuntimeError> for JsNullable<RuntimeError>
impl UpcastFrom<RuntimeError> for JsNullable<Error>
impl UpcastFrom<SegmentData> for JsNullable<JsValue>
impl UpcastFrom<SegmentData> for JsNullable<SegmentData>
impl UpcastFrom<SegmentData> for JsNullable<Object>
impl UpcastFrom<Segmenter> for JsNullable<JsValue>
impl UpcastFrom<Segmenter> for JsNullable<Segmenter>
impl UpcastFrom<Segmenter> for JsNullable<Object>
impl UpcastFrom<SegmenterOptions> for JsNullable<JsValue>
impl UpcastFrom<SegmenterOptions> for JsNullable<SegmenterOptions>
impl UpcastFrom<SegmenterOptions> for JsNullable<Object>
impl UpcastFrom<Segments> for JsNullable<JsValue>
impl UpcastFrom<Segments> for JsNullable<Segments>
impl UpcastFrom<Segments> for JsNullable<Object>
impl<T> UpcastFrom<Set<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<Set<T>> for JsNullable<Set<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T> UpcastFrom<Set<T>> for JsNullable<Object>
impl UpcastFrom<SetFromResult> for JsNullable<JsValue>
impl UpcastFrom<SetFromResult> for JsNullable<SetFromResult>
impl UpcastFrom<SetFromResult> for JsNullable<Object>
impl UpcastFrom<String> for JsNullable
impl UpcastFrom<SuppressedError> for JsNullable<JsValue>
impl UpcastFrom<SuppressedError> for JsNullable<SuppressedError>
impl UpcastFrom<SuppressedError> for JsNullable<Error>
impl UpcastFrom<SuppressedError> for JsNullable<Object>
impl UpcastFrom<Suspending> for JsNullable<JsValue>
impl UpcastFrom<Suspending> for JsNullable<Suspending>
impl UpcastFrom<Suspending> for JsNullable<Object>
impl UpcastFrom<Symbol> for JsNullable<JsValue>
impl UpcastFrom<Symbol> for JsNullable<Symbol>
impl UpcastFrom<SyntaxError> for JsNullable<JsValue>
impl UpcastFrom<SyntaxError> for JsNullable<SyntaxError>
impl UpcastFrom<SyntaxError> for JsNullable<Error>
impl UpcastFrom<SyntaxError> for JsNullable<Object>
impl UpcastFrom<Table> for JsNullable<JsValue>
impl UpcastFrom<Table> for JsNullable<Table>
impl UpcastFrom<Table> for JsNullable<Object>
impl UpcastFrom<Tag> for JsNullable<JsValue>
impl UpcastFrom<Tag> for JsNullable<Tag>
impl UpcastFrom<Tag> for JsNullable<Object>
impl UpcastFrom<TextInfo> for JsNullable<JsValue>
impl UpcastFrom<TextInfo> for JsNullable<TextInfo>
impl UpcastFrom<TextInfo> for JsNullable<Object>
impl UpcastFrom<TypeError> for JsNullable<JsValue>
impl UpcastFrom<TypeError> for JsNullable<TypeError>
impl UpcastFrom<TypeError> for JsNullable<Error>
impl UpcastFrom<TypeError> for JsNullable<Object>
impl UpcastFrom<Uint8Array> for JsNullable<JsValue>
impl UpcastFrom<Uint8Array> for JsNullable<Uint8Array>
impl UpcastFrom<Uint8Array> for JsNullable<Object>
impl UpcastFrom<Uint8ClampedArray> for JsNullable<JsValue>
impl UpcastFrom<Uint8ClampedArray> for JsNullable<Uint8ClampedArray>
impl UpcastFrom<Uint8ClampedArray> for JsNullable<Object>
impl UpcastFrom<Uint16Array> for JsNullable<JsValue>
impl UpcastFrom<Uint16Array> for JsNullable<Uint16Array>
impl UpcastFrom<Uint16Array> for JsNullable<Object>
impl UpcastFrom<Uint32Array> for JsNullable<JsValue>
impl UpcastFrom<Uint32Array> for JsNullable<Uint32Array>
impl UpcastFrom<Uint32Array> for JsNullable<Object>
impl<T> UpcastFrom<Undefined> for JsNullable<T>
impl UpcastFrom<UriError> for JsNullable<JsValue>
impl UpcastFrom<UriError> for JsNullable<UriError>
impl UpcastFrom<UriError> for JsNullable<Error>
impl UpcastFrom<UriError> for JsNullable<Object>
impl<K, V> UpcastFrom<WeakMap<K, V>> for JsNullable<JsValue>
impl<K, V, __UpcastTarget0, __UpcastTarget1> UpcastFrom<WeakMap<K, V>> for JsNullable<WeakMap<__UpcastTarget0, __UpcastTarget1>>where
__UpcastTarget0: UpcastFrom<K>,
__UpcastTarget1: UpcastFrom<V>,
impl<K, V> UpcastFrom<WeakMap<K, V>> for JsNullable<Object>
impl<T> UpcastFrom<WeakRef<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<WeakRef<T>> for JsNullable<WeakRef<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T> UpcastFrom<WeakRef<T>> for JsNullable<Object>
impl<T> UpcastFrom<WeakSet<T>> for JsNullable<JsValue>
impl<T, __UpcastTarget0> UpcastFrom<WeakSet<T>> for JsNullable<WeakSet<__UpcastTarget0>>where
__UpcastTarget0: UpcastFrom<T>,
impl<T> UpcastFrom<WeakSet<T>> for JsNullable<Object>
impl UpcastFrom<WeekInfo> for JsNullable<JsValue>
impl UpcastFrom<WeekInfo> for JsNullable<WeekInfo>
impl UpcastFrom<WeekInfo> for JsNullable<Object>
impl UpcastFrom<bool> for JsNullable
impl UpcastFrom<char> for JsNullable
impl UpcastFrom<f32> for JsNullable
impl UpcastFrom<f32> for JsNullable<f64>
impl UpcastFrom<f64> for JsNullable
impl UpcastFrom<i8> for JsNullable
impl UpcastFrom<i8> for JsNullable<i16>
impl UpcastFrom<i8> for JsNullable<i32>
impl UpcastFrom<i8> for JsNullable<i64>
impl UpcastFrom<i8> for JsNullable<i128>
impl UpcastFrom<i16> for JsNullable
impl UpcastFrom<i16> for JsNullable<i32>
impl UpcastFrom<i16> for JsNullable<i64>
impl UpcastFrom<i16> for JsNullable<i128>
impl UpcastFrom<i32> for JsNullable
impl UpcastFrom<i32> for JsNullable<isize>
impl UpcastFrom<i32> for JsNullable<i64>
impl UpcastFrom<i32> for JsNullable<i128>
impl UpcastFrom<i64> for JsNullable
impl UpcastFrom<i64> for JsNullable<i128>
impl UpcastFrom<i128> for JsNullable
impl UpcastFrom<isize> for JsNullable
impl UpcastFrom<isize> for JsNullable<i64>
impl UpcastFrom<isize> for JsNullable<i128>
impl UpcastFrom<u8> for JsNullable
impl UpcastFrom<u8> for JsNullable<u16>
impl UpcastFrom<u8> for JsNullable<u32>
impl UpcastFrom<u8> for JsNullable<u64>
impl UpcastFrom<u8> for JsNullable<u128>
impl UpcastFrom<u16> for JsNullable
impl UpcastFrom<u16> for JsNullable<u32>
impl UpcastFrom<u16> for JsNullable<u64>
impl UpcastFrom<u16> for JsNullable<u128>
impl UpcastFrom<u32> for JsNullable
impl UpcastFrom<u32> for JsNullable<usize>
impl UpcastFrom<u32> for JsNullable<u64>
impl UpcastFrom<u32> for JsNullable<u128>
impl UpcastFrom<u64> for JsNullable
impl UpcastFrom<u64> for JsNullable<u128>
impl UpcastFrom<u128> for JsNullable
impl UpcastFrom<usize> for JsNullable
impl UpcastFrom<usize> for JsNullable<u64>
impl UpcastFrom<usize> for JsNullable<u128>
Source§impl<T> VectorRefIntoWasmAbi for JsNullable<T>
impl<T> VectorRefIntoWasmAbi for JsNullable<T>
fn slice_into_abi(slice: &[JsNullable<T>]) -> WasmSlice
Auto Trait Implementations§
impl<T> Freeze for JsNullable<T>
impl<T> RefUnwindSafe for JsNullable<T>
impl<T> Send for JsNullable<T>
impl<T> Sync for JsNullable<T>
impl<T> Unpin for JsNullable<T>
impl<T> UnsafeUnpin for JsNullable<T>
impl<T> UnwindSafe for JsNullable<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> JsGeneric for T
Source§impl<T> MaybeFromWasmAbi for Twhere
T: OptionFromWasmAbi,
impl<T> MaybeFromWasmAbi for Twhere
T: OptionFromWasmAbi,
Source§type MaybeAbi = <T as FromWasmAbi>::Abi
type MaybeAbi = <T as FromWasmAbi>::Abi
Option<Self>.Source§unsafe fn from_maybe_abi(js: <T as FromWasmAbi>::Abi) -> T
unsafe fn from_maybe_abi(js: <T as FromWasmAbi>::Abi) -> T
unsafe fn try_from_maybe_abi( js: <T as FromWasmAbi>::Abi, ) -> Result<T, &'static str>
Source§impl<T> MaybeIntoWasmAbi for Twhere
T: OptionIntoWasmAbi,
impl<T> MaybeIntoWasmAbi for Twhere
T: OptionIntoWasmAbi,
Source§type MaybeAbi = <T as IntoWasmAbi>::Abi
type MaybeAbi = <T as IntoWasmAbi>::Abi
Option<Self>.Source§fn into_maybe_abi(self) -> <T as IntoWasmAbi>::Abi
fn into_maybe_abi(self) -> <T as IntoWasmAbi>::Abi
Option<Self> ABI.Source§impl<T, A> RefIntoWasmAbi for T
impl<T, A> RefIntoWasmAbi for T
Source§fn describe_ref()
fn describe_ref()
&Self.Source§fn ref_into_abi(&self) -> A
fn ref_into_abi(&self) -> A
&self into Self::Abi.Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.Source§impl<T> TryFromJsValue for Twhere
T: JsCast,
impl<T> TryFromJsValue for Twhere
T: JsCast,
Source§fn try_from_js_value_ref(val: &JsValue) -> Option<T>
fn try_from_js_value_ref(val: &JsValue) -> Option<T>
Source§const NULLABLE: bool = false
const NULLABLE: bool = false
Self accepts null as a distinct value space, as
Nullable<T> does. An enclosing Option then passes null through
instead of reading it as None, so Option<T> is itself nullable
exactly when T is not. JsValue does not set this: it accepts
null as one value among all of them, not as a distinct space, and
Option<JsValue> reads it as None like the ABI does. This is the
JS-value side of NullableFromWasmAbi, which claims null at the
ABI.