pub(crate) struct RootedTraceableBox<T>(RootedTraceableBox<T>)
where
T: Traceable + 'static;Expand description
Roots any JSTraceable thing, at the cost of wrapping it in a Box. Unlike the rooted! macro, the resulting RootedTraceableBox can be safely moved. RootedTraceableBox is slower to create and drop than roots created by rooted!, due to the extra allocations involved.
If you have a valid DomObject, use DomRoot. If you have GC things like *mut JSObject or JSVal, or anything implementing Rootable, use rooted!. If you have an arbitrary number of DomObjects to root, use rooted_vec!. If your needs are not covered by the previous options, use RootedTraceableBox.
Tuple Fields§
§0: RootedTraceableBox<T>Implementations§
Source§impl<T> RootedTraceableBox<T>where
T: Traceable + 'static,
impl<T> RootedTraceableBox<T>where
T: Traceable + 'static,
Sourcepub fn new(traceable: T) -> RootedTraceableBox<T>
pub fn new(traceable: T) -> RootedTraceableBox<T>
DomRoot a JSTraceable thing for the life of this RootedTraceableBox
Sourcepub fn from_box(boxed_traceable: Box<T>) -> RootedTraceableBox<T>
pub fn from_box(boxed_traceable: Box<T>) -> RootedTraceableBox<T>
Consumes a boxed JSTraceable and roots it for the life of this RootedTraceableBox.
pub fn into_box(self) -> Box<T>
pub fn into_inner(self) -> T
Trait Implementations§
Source§impl<T> Default for RootedTraceableBox<T>
impl<T> Default for RootedTraceableBox<T>
Source§fn default() -> RootedTraceableBox<T>
fn default() -> RootedTraceableBox<T>
Returns the “default value” for a type. Read more
Source§impl<T> Deref for RootedTraceableBox<T>where
T: Traceable,
impl<T> Deref for RootedTraceableBox<T>where
T: Traceable,
Source§impl<T> DerefMut for RootedTraceableBox<T>where
T: Traceable,
impl<T> DerefMut for RootedTraceableBox<T>where
T: Traceable,
Source§impl<T> FromJSValConvertible for RootedTraceableBox<Heap<T>>
impl<T> FromJSValConvertible for RootedTraceableBox<Heap<T>>
Source§type Config = <T as FromJSValConvertible>::Config
type Config = <T as FromJSValConvertible>::Config
Optional configurable behaviour switch; use () for no configuration.
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
config: <RootedTraceableBox<Heap<T>> as FromJSValConvertible>::Config,
) -> Result<ConversionResult<RootedTraceableBox<Heap<T>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, config: <RootedTraceableBox<Heap<T>> as FromJSValConvertible>::Config, ) -> Result<ConversionResult<RootedTraceableBox<Heap<T>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<KeyframeAnimationOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<KeyframeAnimationOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<KeyframeAnimationOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<KeyframeAnimationOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<AudioBufferSourceOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<AudioBufferSourceOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<AudioBufferSourceOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<AudioBufferSourceOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<BluetoothAdvertisingEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<BluetoothAdvertisingEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<BluetoothAdvertisingEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<BluetoothAdvertisingEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<BluetoothDataFilterInit>
impl FromJSValConvertible for RootedTraceableBox<BluetoothDataFilterInit>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<BluetoothDataFilterInit>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<BluetoothDataFilterInit>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<ClipboardEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<ClipboardEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<ClipboardEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<ClipboardEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<CloseWatcherOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<CloseWatcherOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<CloseWatcherOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<CloseWatcherOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<CommandEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<CommandEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<CommandEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<CommandEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<CompositionEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<CompositionEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<CompositionEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<CompositionEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<ConvolverOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<ConvolverOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<ConvolverOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<ConvolverOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<CredentialRequestOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<CredentialRequestOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<CredentialRequestOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<CredentialRequestOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<CredentialCreationOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<CredentialCreationOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<CredentialCreationOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<CredentialCreationOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<CryptoKeyPair<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<CryptoKeyPair<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<CryptoKeyPair<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<CryptoKeyPair<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<CustomEventInit>
impl FromJSValConvertible for RootedTraceableBox<CustomEventInit>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<CustomEventInit>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<CustomEventInit>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<ImportNodeOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<ImportNodeOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<ImportNodeOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<ImportNodeOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GetHTMLOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GetHTMLOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GetHTMLOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GetHTMLOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<ErrorEventInit>
impl FromJSValConvertible for RootedTraceableBox<ErrorEventInit>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<ErrorEventInit>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<ErrorEventInit>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<EventModifierInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<EventModifierInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<EventModifierInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<EventModifierInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<AddEventListenerOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<AddEventListenerOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<AddEventListenerOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<AddEventListenerOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<ExtendableMessageEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<ExtendableMessageEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<ExtendableMessageEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<ExtendableMessageEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<FocusEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<FocusEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<FocusEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<FocusEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<FontFaceSetLoadEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<FontFaceSetLoadEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<FontFaceSetLoadEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<FontFaceSetLoadEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<FormDataEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<FormDataEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<FormDataEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<FormDataEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GamepadEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GamepadEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GamepadEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GamepadEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<ShowPopoverOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<ShowPopoverOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<ShowPopoverOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<ShowPopoverOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<TogglePopoverOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<TogglePopoverOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<TogglePopoverOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<TogglePopoverOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<InputEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<InputEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<InputEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<InputEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<IntersectionObserverEntryInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<IntersectionObserverEntryInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<IntersectionObserverEntryInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<IntersectionObserverEntryInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<IterableKeyOrValueResult>
impl FromJSValConvertible for RootedTraceableBox<IterableKeyOrValueResult>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<IterableKeyOrValueResult>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<IterableKeyOrValueResult>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<IterableKeyAndValueResult>
impl FromJSValConvertible for RootedTraceableBox<IterableKeyAndValueResult>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<IterableKeyAndValueResult>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<IterableKeyAndValueResult>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<KeyboardEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<KeyboardEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<KeyboardEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<KeyboardEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<MediaElementAudioSourceOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<MediaElementAudioSourceOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<MediaElementAudioSourceOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<MediaElementAudioSourceOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<MediaStreamAudioSourceOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<MediaStreamAudioSourceOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<MediaStreamAudioSourceOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<MediaStreamAudioSourceOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<MediaStreamTrackAudioSourceOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<MediaStreamTrackAudioSourceOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<MediaStreamTrackAudioSourceOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<MediaStreamTrackAudioSourceOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<MessageEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<MessageEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<MessageEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<MessageEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<StructuredSerializeOptions>
impl FromJSValConvertible for RootedTraceableBox<StructuredSerializeOptions>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<StructuredSerializeOptions>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<StructuredSerializeOptions>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<MouseEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<MouseEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<MouseEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<MouseEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<NotificationOptions>
impl FromJSValConvertible for RootedTraceableBox<NotificationOptions>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<NotificationOptions>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<NotificationOptions>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<OfflineAudioCompletionEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<OfflineAudioCompletionEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<OfflineAudioCompletionEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<OfflineAudioCompletionEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<OscillatorOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<OscillatorOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<OscillatorOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<OscillatorOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<PerformanceMarkOptions>
impl FromJSValConvertible for RootedTraceableBox<PerformanceMarkOptions>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<PerformanceMarkOptions>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<PerformanceMarkOptions>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<PerformanceMeasureOptions>
impl FromJSValConvertible for RootedTraceableBox<PerformanceMeasureOptions>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<PerformanceMeasureOptions>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<PerformanceMeasureOptions>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<PointerEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<PointerEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<PointerEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<PointerEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<PopStateEventInit>
impl FromJSValConvertible for RootedTraceableBox<PopStateEventInit>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<PopStateEventInit>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<PopStateEventInit>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<PromiseRejectionEventInit>
impl FromJSValConvertible for RootedTraceableBox<PromiseRejectionEventInit>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<PromiseRejectionEventInit>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<PromiseRejectionEventInit>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<QueuingStrategy<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<QueuingStrategy<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<QueuingStrategy<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<QueuingStrategy<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<RTCDataChannelEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<RTCDataChannelEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<RTCDataChannelEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<RTCDataChannelEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<RTCErrorEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<RTCErrorEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<RTCErrorEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<RTCErrorEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<RTCRtpTransceiverInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<RTCRtpTransceiverInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<RTCRtpTransceiverInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<RTCRtpTransceiverInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<RTCPeerConnectionIceEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<RTCPeerConnectionIceEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<RTCPeerConnectionIceEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<RTCPeerConnectionIceEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<RTCTrackEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<RTCTrackEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<RTCTrackEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<RTCTrackEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<ReadableWritablePair<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<ReadableWritablePair<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<ReadableWritablePair<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<ReadableWritablePair<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<StreamPipeOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<StreamPipeOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<StreamPipeOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<StreamPipeOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<ReadableStreamReadResult>
impl FromJSValConvertible for RootedTraceableBox<ReadableStreamReadResult>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<ReadableStreamReadResult>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<ReadableStreamReadResult>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<RequestInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<RequestInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<RequestInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<RequestInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GetComposedRangesOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GetComposedRangesOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GetComposedRangesOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GetComposedRangesOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<StaticRangeInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<StaticRangeInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<StaticRangeInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<StaticRangeInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<StorageEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<StorageEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<StorageEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<StorageEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<SubmitEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<SubmitEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<SubmitEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<SubmitEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<EncapsulatedKey<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<EncapsulatedKey<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<EncapsulatedKey<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<EncapsulatedKey<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<EncapsulatedBits>
impl FromJSValConvertible for RootedTraceableBox<EncapsulatedBits>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<EncapsulatedBits>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<EncapsulatedBits>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<TestDictionary<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<TestDictionary<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<TestDictionary<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<TestDictionary<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<TestDictionaryWithTypedArray>
impl FromJSValConvertible for RootedTraceableBox<TestDictionaryWithTypedArray>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<TestDictionaryWithTypedArray>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<TestDictionaryWithTypedArray>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<TestDictionaryDefaults>
impl FromJSValConvertible for RootedTraceableBox<TestDictionaryDefaults>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<TestDictionaryDefaults>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<TestDictionaryDefaults>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<ToggleEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<ToggleEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<ToggleEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<ToggleEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<TouchInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<TouchInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<TouchInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<TouchInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<Transformer<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<Transformer<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<Transformer<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<Transformer<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<TrustedTypePolicyOptions<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<TrustedTypePolicyOptions<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<TrustedTypePolicyOptions<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<TrustedTypePolicyOptions<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<UIEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<UIEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<UIEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<UIEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<UnderlyingSink<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<UnderlyingSink<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<UnderlyingSink<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<UnderlyingSink<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<UnderlyingSource<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<UnderlyingSource<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<UnderlyingSource<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<UnderlyingSource<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUExternalTextureDescriptor<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUExternalTextureDescriptor<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUExternalTextureDescriptor<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUExternalTextureDescriptor<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUBindGroupDescriptor<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUBindGroupDescriptor<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUBindGroupDescriptor<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUBindGroupDescriptor<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUBindGroupEntry<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUBindGroupEntry<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUBindGroupEntry<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUBindGroupEntry<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUBufferBinding<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUBufferBinding<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUBufferBinding<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUBufferBinding<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUPipelineLayoutDescriptor<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUPipelineLayoutDescriptor<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUPipelineLayoutDescriptor<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUPipelineLayoutDescriptor<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<GPUShaderModuleDescriptor>
impl FromJSValConvertible for RootedTraceableBox<GPUShaderModuleDescriptor>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUShaderModuleDescriptor>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUShaderModuleDescriptor>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUProgrammableStage<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUProgrammableStage<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUProgrammableStage<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUProgrammableStage<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUComputePipelineDescriptor<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUComputePipelineDescriptor<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUComputePipelineDescriptor<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUComputePipelineDescriptor<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPURenderPipelineDescriptor<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPURenderPipelineDescriptor<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPURenderPipelineDescriptor<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPURenderPipelineDescriptor<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUFragmentState<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUFragmentState<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUFragmentState<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUFragmentState<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUVertexState<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUVertexState<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUVertexState<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUVertexState<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUTexelCopyBufferInfo<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUTexelCopyBufferInfo<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUTexelCopyBufferInfo<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUTexelCopyBufferInfo<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUTexelCopyTextureInfo<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUTexelCopyTextureInfo<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUTexelCopyTextureInfo<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUTexelCopyTextureInfo<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUCopyExternalImageDestInfo<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUCopyExternalImageDestInfo<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUCopyExternalImageDestInfo<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUCopyExternalImageDestInfo<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUComputePassTimestampWrites<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUComputePassTimestampWrites<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUComputePassTimestampWrites<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUComputePassTimestampWrites<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUComputePassDescriptor<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUComputePassDescriptor<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUComputePassDescriptor<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUComputePassDescriptor<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPURenderPassTimestampWrites<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPURenderPassTimestampWrites<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPURenderPassTimestampWrites<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPURenderPassTimestampWrites<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPURenderPassDescriptor<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPURenderPassDescriptor<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPURenderPassDescriptor<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPURenderPassDescriptor<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUCanvasConfiguration<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUCanvasConfiguration<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUCanvasConfiguration<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUCanvasConfiguration<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<GPUUncapturedErrorEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<GPUUncapturedErrorEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<GPUUncapturedErrorEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<GPUUncapturedErrorEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<WheelEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<WheelEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<WheelEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<WheelEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl FromJSValConvertible for RootedTraceableBox<WindowPostMessageOptions>
impl FromJSValConvertible for RootedTraceableBox<WindowPostMessageOptions>
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<WindowPostMessageOptions>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<WindowPostMessageOptions>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<DeferredRequestInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<DeferredRequestInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<DeferredRequestInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<DeferredRequestInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRHitTestOptionsInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRHitTestOptionsInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRHitTestOptionsInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRHitTestOptionsInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRInputSourceEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRInputSourceEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRInputSourceEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRInputSourceEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRInputSourcesChangeEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRInputSourcesChangeEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRInputSourcesChangeEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRInputSourcesChangeEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRLayerEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRLayerEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRLayerEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRLayerEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRMediaLayerInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRMediaLayerInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRMediaLayerInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRMediaLayerInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRReferenceSpaceEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRReferenceSpaceEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRReferenceSpaceEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRReferenceSpaceEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRRenderStateInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRRenderStateInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRRenderStateInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRRenderStateInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRSessionEventInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRSessionEventInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRSessionEventInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRSessionEventInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRQuadLayerInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRQuadLayerInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRQuadLayerInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRQuadLayerInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRCylinderLayerInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRCylinderLayerInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRCylinderLayerInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRCylinderLayerInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XREquirectLayerInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XREquirectLayerInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XREquirectLayerInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XREquirectLayerInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRCubeLayerInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRCubeLayerInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRCubeLayerInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRCubeLayerInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<D> FromJSValConvertible for RootedTraceableBox<XRLayerInit<D>>where
D: DomTypes,
impl<D> FromJSValConvertible for RootedTraceableBox<XRLayerInit<D>>where
D: DomTypes,
Source§fn from_jsval(
cx: &mut JSContext,
value: Handle<'_, Value>,
_option: (),
) -> Result<ConversionResult<RootedTraceableBox<XRLayerInit<D>>>, ()>
fn from_jsval( cx: &mut JSContext, value: Handle<'_, Value>, _option: (), ) -> Result<ConversionResult<RootedTraceableBox<XRLayerInit<D>>>, ()>
Convert
val to type Self.
Optional configuration of type T can be passed as the option
argument.
If it returns Err(()), a JSAPI exception is pending.
If it returns Ok(Failure(reason)), there is no pending JSAPI exception.Source§impl<T> MallocSizeOf for RootedTraceableBox<T>where
T: Traceable + MallocSizeOf,
impl<T> MallocSizeOf for RootedTraceableBox<T>where
T: Traceable + MallocSizeOf,
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl<T> ToJSValConvertible for RootedTraceableBox<T>where
T: ToJSValConvertible + Traceable,
impl<T> ToJSValConvertible for RootedTraceableBox<T>where
T: ToJSValConvertible + Traceable,
Auto Trait Implementations§
impl<T> !Send for RootedTraceableBox<T>
impl<T> !Sync for RootedTraceableBox<T>
impl<T> Freeze for RootedTraceableBox<T>
impl<T> RefUnwindSafe for RootedTraceableBox<T>where
T: RefUnwindSafe,
impl<T> Unpin for RootedTraceableBox<T>
impl<T> UnsafeUnpin for RootedTraceableBox<T>
impl<T> UnwindSafe for RootedTraceableBox<T>where
T: RefUnwindSafe,
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<R> CryptoRng for R
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Formattable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert
impl<T> Parsable for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<R> RngCore for Rwhere
R: Rng,
Source§impl<R> RngExt for R
impl<R> RngExt for R
Source§fn random<T>(&mut self) -> Twhere
StandardUniform: Distribution<T>,
fn random<T>(&mut self) -> Twhere
StandardUniform: Distribution<T>,
Return a random value via the
StandardUniform distribution. Read moreSource§fn random_iter<T>(self) -> Iter<StandardUniform, Self, T> ⓘ
fn random_iter<T>(self) -> Iter<StandardUniform, Self, T> ⓘ
Source§fn random_range<T, R>(&mut self, range: R) -> Twhere
T: SampleUniform,
R: SampleRange<T>,
fn random_range<T, R>(&mut self, range: R) -> Twhere
T: SampleUniform,
R: SampleRange<T>,
Generate a random value in the given range. Read more
Source§fn random_bool(&mut self, p: f64) -> bool
fn random_bool(&mut self, p: f64) -> bool
Return a bool with a probability
p of being true. Read moreSource§fn random_ratio(&mut self, numerator: u32, denominator: u32) -> bool
fn random_ratio(&mut self, numerator: u32, denominator: u32) -> bool
Return a bool with a probability of
numerator/denominator of being
true. Read moreSource§fn sample<T, D>(&mut self, distr: D) -> Twhere
D: Distribution<T>,
fn sample<T, D>(&mut self, distr: D) -> Twhere
D: Distribution<T>,
Sample a new value, using the given distribution. Read more
Source§fn sample_iter<T, D>(self, distr: D) -> Iter<D, Self, T> ⓘwhere
D: Distribution<T>,
Self: Sized,
fn sample_iter<T, D>(self, distr: D) -> Iter<D, Self, T> ⓘwhere
D: Distribution<T>,
Self: Sized,
Create an iterator that generates values using the given distribution. Read more