pub enum Nullable<T> {
Null,
Value(T),
}Expand description
A T or null at the JS boundary.
Nullable<T> is the Rust-side type for a JS value of type T | null, as
Option<T> is for T | undefined, and Option<Nullable<T>> is the union
T | null | undefined. All three are accepted in the same positions: as an
argument or return value of exported and imported functions, as a public
field of an exported struct, and as a closure argument or return value,
including the &/&mut reference forms Option<T> supports.
| Type | JS type | JS → Rust | Rust → JS |
|---|---|---|---|
Option<T> | T | undefined | undefined and null → None; anything else goes to T’s conversion | None → undefined |
Nullable<T> | T | null | null → Null; anything else, undefined included, goes to T’s conversion | Null → null |
Option<Nullable<T>> | T | null | undefined | undefined → None, null → Some(Null), else Some(Value(..)) | None → undefined, Some(Null) → null |
The Option layer of Option<Nullable<T>> treats only undefined as
None, since null has to reach the Nullable layer.
opt.and_then(Nullable::value) collapses the union to an
Option<T>. No other nesting is supported: Nullable<Nullable<T>>,
Nullable<Option<T>> and Option<Option<T>> do not cross the boundary.
Both may also name a slot of a js-sys Function<fn(..)> signature or a
Promise<T> resolution. Where a js-sys container’s type-erased methods
marshal the element itself, as Array::get and Map::get do, the
element must be a handle: use the JS-side JsOption<T> and
JsNullable<T> there, which stay JS values rather than converting.
Variants§
Implementations§
Source§impl<T> Nullable<T>
impl<T> Nullable<T>
Sourcepub fn as_mut(&mut self) -> Nullable<&mut T>
pub fn as_mut(&mut self) -> Nullable<&mut T>
Converts from &mut Nullable<T> to Nullable<&mut T>.
Sourcepub fn map<U, F>(self, f: F) -> Nullable<U>where
F: FnOnce(T) -> U,
pub fn map<U, F>(self, f: F) -> Nullable<U>where
F: FnOnce(T) -> U,
Maps a Nullable<T> to Nullable<U> by applying a function to a
contained value, leaving Null as it is.
Sourcepub fn into_option(self) -> Option<T>
pub fn into_option(self) -> Option<T>
Returns the contained value as Some, or None for Null.
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 f.
Sourcepub fn unwrap_or_default(self) -> Twhere
T: Default,
pub fn unwrap_or_default(self) -> Twhere
T: Default,
Returns the contained value or T::default().
Sourcepub fn is_value_and(self, f: impl FnOnce(T) -> bool) -> bool
pub fn is_value_and(self, f: impl FnOnce(T) -> bool) -> bool
Returns true if this is a Value and f holds for it.
Sourcepub fn is_null_or(self, f: impl FnOnce(T) -> bool) -> bool
pub fn is_null_or(self, f: impl FnOnce(T) -> bool) -> bool
Returns true if this is Null, or a Value for which f holds.
Sourcepub fn ok_or<E>(self, err: E) -> Result<T, E>
pub fn ok_or<E>(self, err: E) -> Result<T, E>
Returns the contained value as Ok, or Err(err) for Null.
Sourcepub fn ok_or_else<E, F>(self, err: F) -> Result<T, E>where
F: FnOnce() -> E,
pub fn ok_or_else<E, F>(self, err: F) -> Result<T, E>where
F: FnOnce() -> E,
Returns the contained value as Ok, or Err(err()) for Null.
Sourcepub fn and_then<U, F>(self, f: F) -> Nullable<U>
pub fn and_then<U, F>(self, f: F) -> Nullable<U>
Returns Null for Null, otherwise calls f on the contained value.
Sourcepub fn filter<P>(self, predicate: P) -> Nullable<T>
pub fn filter<P>(self, predicate: P) -> Nullable<T>
Returns the contained value if predicate holds for it, otherwise
Null.
Source§impl<T> Nullable<T>where
T: DerefMut,
impl<T> Nullable<T>where
T: DerefMut,
Sourcepub fn as_deref_mut(&mut self) -> Nullable<&mut <T as Deref>::Target>
pub fn as_deref_mut(&mut self) -> Nullable<&mut <T as Deref>::Target>
Converts from Nullable<T> (or &mut Nullable<T>) to
Nullable<&mut T::Target>.
Trait Implementations§
impl<T> Copy for Nullable<T>where
T: Copy,
impl<T> Eq for Nullable<T>where
T: Eq,
Source§impl<T> ErasableGeneric for Nullable<T>where
T: ErasableGeneric,
impl<T> ErasableGeneric for Nullable<T>where
T: ErasableGeneric,
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> FromWasmAbi for Nullable<T>where
T: NullableFromWasmAbi,
impl<T> FromWasmAbi for Nullable<T>where
T: NullableFromWasmAbi,
Source§impl<T> IntoIterator for Nullable<T>
impl<T> IntoIterator for Nullable<T>
Source§impl<'a, T> IntoIterator for &'a Nullable<T>
impl<'a, T> IntoIterator for &'a Nullable<T>
Source§impl<'a, T> IntoIterator for &'a mut Nullable<T>
impl<'a, T> IntoIterator for &'a mut Nullable<T>
Source§impl<T> IntoWasmAbi for Nullable<T>where
T: NullableIntoWasmAbi,
impl<T> IntoWasmAbi for Nullable<T>where
T: NullableIntoWasmAbi,
Source§type Abi = <T as MaybeIntoWasmAbi>::MaybeAbi
type Abi = <T as MaybeIntoWasmAbi>::MaybeAbi
Source§fn into_abi(self) -> <T as MaybeIntoWasmAbi>::MaybeAbi
fn into_abi(self) -> <T as MaybeIntoWasmAbi>::MaybeAbi
self into Self::Abi so that it can be sent across the wasm
ABI boundary.Source§impl<'a, T> IntoWasmAbi for &'a Nullable<T>
impl<'a, T> IntoWasmAbi for &'a Nullable<T>
Source§impl<T> OptionFromWasmAbi for Nullable<T>where
T: NullableFromWasmAbi,
T’s undefined test may cover its null sentinel too, as a slice’s
does with the null pointer, so Null is ruled out first.
impl<T> OptionFromWasmAbi for Nullable<T>where
T: NullableFromWasmAbi,
T’s undefined test may cover its null sentinel too, as a slice’s
does with the null pointer, so Null is ruled out first.
Source§impl<T> OptionIntoWasmAbi for Nullable<T>where
T: NullableIntoWasmAbi,
Option<Nullable<T>> is None for T’s undefined ABI value.
impl<T> OptionIntoWasmAbi for Nullable<T>where
T: NullableIntoWasmAbi,
Option<Nullable<T>> is None for T’s undefined ABI value.
Source§impl<'a, T> OptionIntoWasmAbi for &'a Nullable<T>
impl<'a, T> OptionIntoWasmAbi for &'a Nullable<T>
Source§impl<T> Ord for Nullable<T>where
T: Ord,
impl<T> Ord for Nullable<T>where
T: Ord,
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl<T> PartialOrd for Nullable<T>where
T: PartialOrd,
impl<T> PartialOrd for Nullable<T>where
T: PartialOrd,
Source§impl<T> Promising for Nullable<T>where
T: Promising,
impl<T> Promising for Nullable<T>where
T: Promising,
Source§type Resolution = Nullable<<T as Promising>::Resolution>
type Resolution = Nullable<<T as Promising>::Resolution>
impl<T> StructuralPartialEq for Nullable<T>where
T: PartialEq,
Source§impl<T> TryFromJsValue for Nullable<T>where
T: TryFromJsValue,
impl<T> TryFromJsValue for Nullable<T>where
T: TryFromJsValue,
Source§const NULLABLE: bool = true
const NULLABLE: bool = true
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.impl<'a, Target> UpcastFrom<&'a str> for Nullable<Target>where
Target: UpcastFrom<&'a str>,
impl<__UpcastWrapTarget> UpcastFrom<AggregateError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AggregateError>,
impl<__UpcastWrapTarget> UpcastFrom<AnimationEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AnimationEvent>,
impl<T, __UpcastWrapTarget> UpcastFrom<Array<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Array<T>>,
impl<__UpcastWrapTarget> UpcastFrom<ArrayBuffer> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ArrayBuffer>,
impl<__UpcastWrapTarget> UpcastFrom<ArrayBufferOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ArrayBufferOptions>,
impl<T, Target> UpcastFrom<ArrayTuple<T>> for Nullable<Target>
impl<__UpcastWrapTarget> UpcastFrom<AsyncDisposableStack> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AsyncDisposableStack>,
impl<T, __UpcastWrapTarget> UpcastFrom<AsyncGenerator<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AsyncGenerator<T>>,
impl<T, __UpcastWrapTarget> UpcastFrom<AsyncIterator<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AsyncIterator<T>>,
impl<__UpcastWrapTarget> UpcastFrom<AudioBuffer> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AudioBuffer>,
impl<__UpcastWrapTarget> UpcastFrom<AudioBufferSourceNode> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AudioBufferSourceNode>,
impl<__UpcastWrapTarget> UpcastFrom<AudioContext> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AudioContext>,
impl<__UpcastWrapTarget> UpcastFrom<AudioDestinationNode> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AudioDestinationNode>,
impl<__UpcastWrapTarget> UpcastFrom<AudioListener> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AudioListener>,
impl<__UpcastWrapTarget> UpcastFrom<AudioNode> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AudioNode>,
impl<__UpcastWrapTarget> UpcastFrom<AudioParam> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AudioParam>,
impl<__UpcastWrapTarget> UpcastFrom<AudioScheduledSourceNode> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<AudioScheduledSourceNode>,
impl<__UpcastWrapTarget> UpcastFrom<Base64Options> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Base64Options>,
impl<__UpcastWrapTarget> UpcastFrom<BaseAudioContext> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<BaseAudioContext>,
impl<__UpcastWrapTarget> UpcastFrom<BeforeUnloadEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<BeforeUnloadEvent>,
impl<__UpcastWrapTarget> UpcastFrom<BigInt64Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<BigInt64Array>,
impl<__UpcastWrapTarget> UpcastFrom<BigInt> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<BigInt>,
impl<__UpcastWrapTarget> UpcastFrom<BigUint64Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<BigUint64Array>,
impl<__UpcastWrapTarget> UpcastFrom<Blob> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Blob>,
impl<__UpcastWrapTarget> UpcastFrom<Boolean> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Boolean>,
impl<__UpcastWrapTarget> UpcastFrom<CanvasGradient> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<CanvasGradient>,
impl<__UpcastWrapTarget> UpcastFrom<CanvasRenderingContext2d> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<CanvasRenderingContext2d>,
impl<__UpcastWrapTarget> UpcastFrom<CharacterData> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<CharacterData>,
impl<__UpcastWrapTarget> UpcastFrom<Clipboard> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Clipboard>,
impl<__UpcastWrapTarget> UpcastFrom<ClipboardEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ClipboardEvent>,
impl<__UpcastWrapTarget> UpcastFrom<Collator> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Collator>,
impl<__UpcastWrapTarget> UpcastFrom<CollatorOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<CollatorOptions>,
impl<__UpcastWrapTarget> UpcastFrom<CompileError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<CompileError>,
impl<__UpcastWrapTarget> UpcastFrom<CompileOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<CompileOptions>,
impl<__UpcastWrapTarget> UpcastFrom<ConsoleTask> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ConsoleTask>,
impl<__UpcastWrapTarget> UpcastFrom<CssStyleDeclaration> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<CssStyleDeclaration>,
impl<__UpcastWrapTarget> UpcastFrom<DataTransfer> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DataTransfer>,
impl<__UpcastWrapTarget> UpcastFrom<DataView> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DataView>,
impl<__UpcastWrapTarget> UpcastFrom<Date> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Date>,
impl<__UpcastWrapTarget> UpcastFrom<DateTimeFormat> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DateTimeFormat>,
impl<__UpcastWrapTarget> UpcastFrom<DateTimeFormatOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DateTimeFormatOptions>,
impl<__UpcastWrapTarget> UpcastFrom<DateTimeFormatPart> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DateTimeFormatPart>,
impl<__UpcastWrapTarget> UpcastFrom<DateTimeRangeFormatPart> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DateTimeRangeFormatPart>,
impl<__UpcastWrapTarget> UpcastFrom<DisplayNames> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DisplayNames>,
impl<__UpcastWrapTarget> UpcastFrom<DisplayNamesOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DisplayNamesOptions>,
impl<__UpcastWrapTarget> UpcastFrom<DisposableStack> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DisposableStack>,
impl<__UpcastWrapTarget> UpcastFrom<Document> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Document>,
impl<__UpcastWrapTarget> UpcastFrom<DocumentFragment> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DocumentFragment>,
impl<__UpcastWrapTarget> UpcastFrom<DomRect> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DomRect>,
impl<__UpcastWrapTarget> UpcastFrom<DomRectReadOnly> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DomRectReadOnly>,
impl<__UpcastWrapTarget> UpcastFrom<DragEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DragEvent>,
impl<__UpcastWrapTarget> UpcastFrom<Duration> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Duration>,
impl<__UpcastWrapTarget> UpcastFrom<DurationFormat> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DurationFormat>,
impl<__UpcastWrapTarget> UpcastFrom<DurationFormatOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DurationFormatOptions>,
impl<__UpcastWrapTarget> UpcastFrom<DurationFormatPart> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<DurationFormatPart>,
impl<__UpcastWrapTarget> UpcastFrom<Element> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Element>,
impl<__UpcastWrapTarget> UpcastFrom<Error> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Error>,
impl<__UpcastWrapTarget> UpcastFrom<ErrorOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ErrorOptions>,
impl<__UpcastWrapTarget> UpcastFrom<EvalError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<EvalError>,
impl<__UpcastWrapTarget> UpcastFrom<Event> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Event>,
impl<__UpcastWrapTarget> UpcastFrom<EventInit> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<EventInit>,
impl<__UpcastWrapTarget> UpcastFrom<EventSource> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<EventSource>,
impl<__UpcastWrapTarget> UpcastFrom<EventTarget> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<EventTarget>,
impl<__UpcastWrapTarget> UpcastFrom<Exception> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Exception>,
impl<__UpcastWrapTarget> UpcastFrom<File> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<File>,
impl<__UpcastWrapTarget> UpcastFrom<FileList> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<FileList>,
impl<__UpcastWrapTarget> UpcastFrom<FileReader> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<FileReader>,
impl<__UpcastWrapTarget> UpcastFrom<FinalizationRegistry> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<FinalizationRegistry>,
impl<__UpcastWrapTarget> UpcastFrom<Float16Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Float16Array>,
impl<__UpcastWrapTarget> UpcastFrom<Float32Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Float32Array>,
impl<__UpcastWrapTarget> UpcastFrom<Float64Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Float64Array>,
impl<__UpcastWrapTarget> UpcastFrom<FocusEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<FocusEvent>,
impl<T, Target> UpcastFrom<Function<T>> for Nullable<Target>
impl<__UpcastWrapTarget> UpcastFrom<GainNode> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<GainNode>,
impl<__UpcastWrapTarget> UpcastFrom<Gamepad> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Gamepad>,
impl<__UpcastWrapTarget> UpcastFrom<GamepadButton> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<GamepadButton>,
impl<__UpcastWrapTarget> UpcastFrom<GamepadEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<GamepadEvent>,
impl<T, __UpcastWrapTarget> UpcastFrom<Generator<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Generator<T>>,
impl<__UpcastWrapTarget> UpcastFrom<Global> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Global>,
impl<__UpcastWrapTarget> UpcastFrom<Global> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Global>,
impl<__UpcastWrapTarget> UpcastFrom<Global> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Global>,
impl<__UpcastWrapTarget> UpcastFrom<HashChangeEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HashChangeEvent>,
impl<__UpcastWrapTarget> UpcastFrom<History> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<History>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlButtonElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlButtonElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlCanvasElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlCanvasElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlCollection> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlCollection>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlFormElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlFormElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlHeadElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlHeadElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlImageElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlImageElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlInputElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlInputElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlMediaElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlMediaElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlMetaElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlMetaElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlOptionElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlOptionElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlSelectElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlSelectElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlStyleElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlStyleElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlTextAreaElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlTextAreaElement>,
impl<__UpcastWrapTarget> UpcastFrom<HtmlVideoElement> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<HtmlVideoElement>,
impl<__UpcastWrapTarget> UpcastFrom<ImageData> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ImageData>,
impl<__UpcastWrapTarget> UpcastFrom<InputEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<InputEvent>,
impl<__UpcastWrapTarget> UpcastFrom<Instance> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Instance>,
impl<__UpcastWrapTarget> UpcastFrom<InstantiatedSource> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<InstantiatedSource>,
impl<__UpcastWrapTarget> UpcastFrom<Int8Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Int8Array>,
impl<__UpcastWrapTarget> UpcastFrom<Int16Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Int16Array>,
impl<__UpcastWrapTarget> UpcastFrom<Int32Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Int32Array>,
impl<__UpcastWrapTarget> UpcastFrom<IntersectionObserver> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<IntersectionObserver>,
impl<__UpcastWrapTarget> UpcastFrom<IntersectionObserverEntry> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<IntersectionObserverEntry>,
impl<__UpcastWrapTarget> UpcastFrom<IntersectionObserverInit> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<IntersectionObserverInit>,
impl<T, __UpcastWrapTarget> UpcastFrom<Iterator<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Iterator<T>>,
impl<T, __UpcastWrapTarget> UpcastFrom<IteratorNext<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<IteratorNext<T>>,
impl<__UpcastWrapTarget> UpcastFrom<JsClosure> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<JsClosure>,
impl<__UpcastWrapTarget> UpcastFrom<JsString> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<JsString>,
impl<Target> UpcastFrom<JsValue> for Nullable<Target>where
Target: UpcastFrom<JsValue>,
impl<__UpcastWrapTarget> UpcastFrom<KeyboardEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<KeyboardEvent>,
impl<__UpcastWrapTarget> UpcastFrom<LinkError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<LinkError>,
impl<__UpcastWrapTarget> UpcastFrom<ListFormat> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ListFormat>,
impl<__UpcastWrapTarget> UpcastFrom<ListFormatOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ListFormatOptions>,
impl<__UpcastWrapTarget> UpcastFrom<ListFormatPart> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ListFormatPart>,
impl<__UpcastWrapTarget> UpcastFrom<Locale> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Locale>,
impl<__UpcastWrapTarget> UpcastFrom<LocaleMatcherOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<LocaleMatcherOptions>,
impl<__UpcastWrapTarget> UpcastFrom<Location> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Location>,
impl<K, V, __UpcastWrapTarget> UpcastFrom<Map<K, V>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Map<K, V>>,
impl<__UpcastWrapTarget> UpcastFrom<MaybeIterator> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<MaybeIterator>,
impl<__UpcastWrapTarget> UpcastFrom<MediaDevices> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<MediaDevices>,
impl<__UpcastWrapTarget> UpcastFrom<MediaQueryList> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<MediaQueryList>,
impl<__UpcastWrapTarget> UpcastFrom<MediaStream> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<MediaStream>,
impl<__UpcastWrapTarget> UpcastFrom<MediaStreamConstraints> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<MediaStreamConstraints>,
impl<__UpcastWrapTarget> UpcastFrom<MediaStreamTrack> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<MediaStreamTrack>,
impl<__UpcastWrapTarget> UpcastFrom<Memory> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Memory>,
impl<__UpcastWrapTarget> UpcastFrom<MessageEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<MessageEvent>,
impl<__UpcastWrapTarget> UpcastFrom<Module> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Module>,
impl<__UpcastWrapTarget> UpcastFrom<MouseEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<MouseEvent>,
impl<__UpcastWrapTarget> UpcastFrom<Node> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Node>,
impl<__UpcastWrapTarget> UpcastFrom<NodeList> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<NodeList>,
impl<T> UpcastFrom<Null> for Nullable<T>
impl<T, Target> UpcastFrom<Nullable<T>> for Nullable<Target>where
Target: UpcastFrom<T>,
impl<T, Target> UpcastFrom<Nullable<T>> for Option<Target>where
Target: UpcastFrom<T>,
impl<T, Target> UpcastFrom<Nullable<T>> for JsOption<Nullable<Target>>where
Target: UpcastFrom<T>,
impl<T, Target> UpcastFrom<Nullable<T>> for JsNullable<Nullable<Target>>where
Target: UpcastFrom<T>,
impl<T> UpcastFrom<Nullable<T>> for JsValuewhere
JsValue: UpcastFrom<T>,
impl<__UpcastWrapTarget> UpcastFrom<Number> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Number>,
impl<__UpcastWrapTarget> UpcastFrom<NumberFormat> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<NumberFormat>,
impl<__UpcastWrapTarget> UpcastFrom<NumberFormatOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<NumberFormatOptions>,
impl<__UpcastWrapTarget> UpcastFrom<NumberFormatPart> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<NumberFormatPart>,
impl<__UpcastWrapTarget> UpcastFrom<NumberRangeFormatPart> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<NumberRangeFormatPart>,
impl<T, __UpcastWrapTarget> UpcastFrom<Object<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Object<T>>,
impl<__UpcastWrapTarget> UpcastFrom<Performance> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Performance>,
impl<__UpcastWrapTarget> UpcastFrom<PluralRules> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<PluralRules>,
impl<__UpcastWrapTarget> UpcastFrom<PluralRulesOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<PluralRulesOptions>,
impl<T, E, __UpcastWrapTarget> UpcastFrom<Promise<T, E>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Promise<T, E>>,
impl<T, E, __UpcastWrapTarget> UpcastFrom<PromiseState<T, E>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<PromiseState<T, E>>,
impl<T, E, Target> UpcastFrom<PromiseWithResolvers<T, E>> for Nullable<Target>where
Target: UpcastFrom<PromiseWithResolvers<T, E>>,
impl<T, __UpcastWrapTarget> UpcastFrom<PropertyDescriptor<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<PropertyDescriptor<T>>,
impl<__UpcastWrapTarget> UpcastFrom<Proxy> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Proxy>,
impl<__UpcastWrapTarget> UpcastFrom<RangeError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<RangeError>,
impl<__UpcastWrapTarget> UpcastFrom<ReferenceError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ReferenceError>,
impl<__UpcastWrapTarget> UpcastFrom<RegExp> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<RegExp>,
impl<__UpcastWrapTarget> UpcastFrom<RegExpMatchArray> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<RegExpMatchArray>,
impl<__UpcastWrapTarget> UpcastFrom<RelativeTimeFormat> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<RelativeTimeFormat>,
impl<__UpcastWrapTarget> UpcastFrom<RelativeTimeFormatOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<RelativeTimeFormatOptions>,
impl<__UpcastWrapTarget> UpcastFrom<RelativeTimeFormatPart> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<RelativeTimeFormatPart>,
impl<__UpcastWrapTarget> UpcastFrom<ResizeObserver> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResizeObserver>,
impl<__UpcastWrapTarget> UpcastFrom<ResizeObserverEntry> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResizeObserverEntry>,
impl<__UpcastWrapTarget> UpcastFrom<ResolvedCollatorOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResolvedCollatorOptions>,
impl<__UpcastWrapTarget> UpcastFrom<ResolvedDateTimeFormatOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResolvedDateTimeFormatOptions>,
impl<__UpcastWrapTarget> UpcastFrom<ResolvedDisplayNamesOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResolvedDisplayNamesOptions>,
impl<__UpcastWrapTarget> UpcastFrom<ResolvedDurationFormatOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResolvedDurationFormatOptions>,
impl<__UpcastWrapTarget> UpcastFrom<ResolvedListFormatOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResolvedListFormatOptions>,
impl<__UpcastWrapTarget> UpcastFrom<ResolvedNumberFormatOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResolvedNumberFormatOptions>,
impl<__UpcastWrapTarget> UpcastFrom<ResolvedPluralRulesOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResolvedPluralRulesOptions>,
impl<__UpcastWrapTarget> UpcastFrom<ResolvedRelativeTimeFormatOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResolvedRelativeTimeFormatOptions>,
impl<__UpcastWrapTarget> UpcastFrom<ResolvedSegmenterOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ResolvedSegmenterOptions>,
impl<__UpcastWrapTarget> UpcastFrom<Response> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Response>,
impl<__UpcastWrapTarget> UpcastFrom<RuntimeError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<RuntimeError>,
impl<__UpcastWrapTarget> UpcastFrom<Screen> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Screen>,
impl<__UpcastWrapTarget> UpcastFrom<ScrollIntoViewOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<ScrollIntoViewOptions>,
impl<__UpcastWrapTarget> UpcastFrom<SegmentData> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<SegmentData>,
impl<__UpcastWrapTarget> UpcastFrom<Segmenter> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Segmenter>,
impl<__UpcastWrapTarget> UpcastFrom<SegmenterOptions> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<SegmenterOptions>,
impl<__UpcastWrapTarget> UpcastFrom<Segments> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Segments>,
impl<T, __UpcastWrapTarget> UpcastFrom<Set<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Set<T>>,
impl<__UpcastWrapTarget> UpcastFrom<SetFromResult> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<SetFromResult>,
impl<__UpcastWrapTarget> UpcastFrom<Storage> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Storage>,
impl<Target> UpcastFrom<String> for Nullable<Target>where
Target: UpcastFrom<String>,
impl<__UpcastWrapTarget> UpcastFrom<SubmitEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<SubmitEvent>,
impl<__UpcastWrapTarget> UpcastFrom<SuppressedError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<SuppressedError>,
impl<__UpcastWrapTarget> UpcastFrom<Suspending> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Suspending>,
impl<__UpcastWrapTarget> UpcastFrom<Symbol> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Symbol>,
impl<__UpcastWrapTarget> UpcastFrom<SyntaxError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<SyntaxError>,
impl<__UpcastWrapTarget> UpcastFrom<Table> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Table>,
impl<__UpcastWrapTarget> UpcastFrom<Tag> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Tag>,
impl<__UpcastWrapTarget> UpcastFrom<Text> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Text>,
impl<__UpcastWrapTarget> UpcastFrom<TextInfo> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<TextInfo>,
impl<__UpcastWrapTarget> UpcastFrom<TextMetrics> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<TextMetrics>,
impl<__UpcastWrapTarget> UpcastFrom<Touch> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Touch>,
impl<__UpcastWrapTarget> UpcastFrom<TouchEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<TouchEvent>,
impl<__UpcastWrapTarget> UpcastFrom<TouchList> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<TouchList>,
impl<__UpcastWrapTarget> UpcastFrom<TransitionEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<TransitionEvent>,
impl<__UpcastWrapTarget> UpcastFrom<TypeError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<TypeError>,
impl<__UpcastWrapTarget> UpcastFrom<UiEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<UiEvent>,
impl<__UpcastWrapTarget> UpcastFrom<Uint8Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Uint8Array>,
impl<__UpcastWrapTarget> UpcastFrom<Uint8ClampedArray> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Uint8ClampedArray>,
impl<__UpcastWrapTarget> UpcastFrom<Uint16Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Uint16Array>,
impl<__UpcastWrapTarget> UpcastFrom<Uint32Array> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Uint32Array>,
impl<__UpcastWrapTarget> UpcastFrom<UriError> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<UriError>,
impl<__UpcastWrapTarget> UpcastFrom<VisualViewport> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<VisualViewport>,
impl<K, V, __UpcastWrapTarget> UpcastFrom<WeakMap<K, V>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WeakMap<K, V>>,
impl<T, __UpcastWrapTarget> UpcastFrom<WeakRef<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WeakRef<T>>,
impl<T, __UpcastWrapTarget> UpcastFrom<WeakSet<T>> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WeakSet<T>>,
impl<__UpcastWrapTarget> UpcastFrom<WebGl2RenderingContext> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebGl2RenderingContext>,
impl<__UpcastWrapTarget> UpcastFrom<WebGlBuffer> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebGlBuffer>,
impl<__UpcastWrapTarget> UpcastFrom<WebGlContextAttributes> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebGlContextAttributes>,
impl<__UpcastWrapTarget> UpcastFrom<WebGlFramebuffer> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebGlFramebuffer>,
impl<__UpcastWrapTarget> UpcastFrom<WebGlProgram> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebGlProgram>,
impl<__UpcastWrapTarget> UpcastFrom<WebGlRenderbuffer> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebGlRenderbuffer>,
impl<__UpcastWrapTarget> UpcastFrom<WebGlShader> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebGlShader>,
impl<__UpcastWrapTarget> UpcastFrom<WebGlTexture> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebGlTexture>,
impl<__UpcastWrapTarget> UpcastFrom<WebGlUniformLocation> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebGlUniformLocation>,
impl<__UpcastWrapTarget> UpcastFrom<WebGlVertexArrayObject> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebGlVertexArrayObject>,
impl<__UpcastWrapTarget> UpcastFrom<WebSocket> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WebSocket>,
impl<__UpcastWrapTarget> UpcastFrom<WeekInfo> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WeekInfo>,
impl<__UpcastWrapTarget> UpcastFrom<WheelEvent> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<WheelEvent>,
impl<__UpcastWrapTarget> UpcastFrom<Window> for Nullable<__UpcastWrapTarget>where
__UpcastWrapTarget: UpcastFrom<Window>,
impl<Target> UpcastFrom<bool> for Nullable<Target>where
Target: UpcastFrom<bool>,
impl<Target> UpcastFrom<char> for Nullable<Target>where
Target: UpcastFrom<char>,
impl<Target> UpcastFrom<f32> for Nullable<Target>where
Target: UpcastFrom<f32>,
impl<Target> UpcastFrom<f64> for Nullable<Target>where
Target: UpcastFrom<f64>,
impl<Target> UpcastFrom<i8> for Nullable<Target>where
Target: UpcastFrom<i8>,
impl<Target> UpcastFrom<i16> for Nullable<Target>where
Target: UpcastFrom<i16>,
impl<Target> UpcastFrom<i32> for Nullable<Target>where
Target: UpcastFrom<i32>,
impl<Target> UpcastFrom<i64> for Nullable<Target>where
Target: UpcastFrom<i64>,
impl<Target> UpcastFrom<i128> for Nullable<Target>where
Target: UpcastFrom<i128>,
impl<Target> UpcastFrom<isize> for Nullable<Target>where
Target: UpcastFrom<isize>,
impl<Target> UpcastFrom<u8> for Nullable<Target>where
Target: UpcastFrom<u8>,
impl<Target> UpcastFrom<u16> for Nullable<Target>where
Target: UpcastFrom<u16>,
impl<Target> UpcastFrom<u32> for Nullable<Target>where
Target: UpcastFrom<u32>,
impl<Target> UpcastFrom<u64> for Nullable<Target>where
Target: UpcastFrom<u64>,
impl<Target> UpcastFrom<u128> for Nullable<Target>where
Target: UpcastFrom<u128>,
impl<Target> UpcastFrom<usize> for Nullable<Target>where
Target: UpcastFrom<usize>,
Auto Trait Implementations§
impl<T> Freeze for Nullable<T>where
T: Freeze,
impl<T> RefUnwindSafe for Nullable<T>where
T: RefUnwindSafe,
impl<T> Send for Nullable<T>where
T: Send,
impl<T> Sync for Nullable<T>where
T: Sync,
impl<T> Unpin for Nullable<T>where
T: Unpin,
impl<T> UnsafeUnpin for Nullable<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Nullable<T>where
T: UnwindSafe,
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,
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.