Skip to main content

RootedTraceableBox

Struct RootedTraceableBox 

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

Source

pub fn new(traceable: T) -> RootedTraceableBox<T>

DomRoot a JSTraceable thing for the life of this RootedTraceableBox

Source

pub fn from_box(boxed_traceable: Box<T>) -> RootedTraceableBox<T>

Consumes a boxed JSTraceable and roots it for the life of this RootedTraceableBox.

Source

pub fn into_box(self) -> Box<T>

Source

pub fn into_inner(self) -> T

Source§

impl<T> RootedTraceableBox<Heap<T>>
where Heap<T>: Traceable + 'static, T: GCMethods + Copy,

Source

pub fn handle(&self) -> Handle<'_, T>

Trait Implementations§

Source§

impl<T> Default for RootedTraceableBox<T>
where T: Traceable + Default,

Source§

fn default() -> RootedTraceableBox<T>

Returns the “default value” for a type. Read more
Source§

impl<T> Deref for RootedTraceableBox<T>
where T: Traceable,

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &T

Dereferences the value.
Source§

impl<T> DerefMut for RootedTraceableBox<T>
where T: Traceable,

Source§

fn deref_mut(&mut self) -> &mut T

Mutably dereferences the value.
Source§

impl<'a> From<&'a RootedTraceableBox<TypedArray<ArrayBufferU8, Box<Heap<*mut JSObject>>>>> for ArrayBufferViewOrArrayBufferRef<'a>

Source§

fn from( buffer: &'a RootedTraceableBox<TypedArray<ArrayBufferU8, Box<Heap<*mut JSObject>>>>, ) -> ArrayBufferViewOrArrayBufferRef<'a>

Converts to this type from the input type.
Source§

impl<'a> From<&'a RootedTraceableBox<TypedArray<ArrayBufferViewU8, Box<Heap<*mut JSObject>>>>> for ArrayBufferViewOrArrayBufferRef<'a>

Source§

fn from( view: &'a RootedTraceableBox<TypedArray<ArrayBufferViewU8, Box<Heap<*mut JSObject>>>>, ) -> ArrayBufferViewOrArrayBufferRef<'a>

Converts to this type from the input type.
Source§

impl<T> FromJSValConvertible for RootedTraceableBox<Heap<T>>

Source§

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

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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,

Source§

type Config = ()

Optional configurable behaviour switch; use () for no configuration.
Source§

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>

Source§

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>

Source§

fn to_jsval(&self, cx: &mut JSContext, rval: MutableHandle<'_, Value>)

Convert self to a JSVal. JSAPI failure causes a panic.
Source§

impl<T> Traceable for RootedTraceableBox<T>
where T: Traceable + 'static,

Source§

unsafe fn trace(&self, tracer: *mut JSTracer)

Trace self.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<R> CryptoRng for R
where R: TryCryptoRng<Error = Infallible> + ?Sized,

Source§

impl<T> Downcast<T> for T

Source§

fn downcast(&self) -> &T

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Formattable for T
where T: Deref, <T as Deref>::Target: Formattable,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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

impl<T> MaybeBoxed<Box<T>> for T

Source§

fn maybe_boxed(self) -> Box<T>

Convert
Source§

impl<T> MaybeBoxed<T> for T

Source§

fn maybe_boxed(self) -> T

Convert
Source§

impl<T> Parsable for T
where T: Deref, <T as Deref>::Target: Parsable,

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<R> Rng for R
where R: TryRng<Error = Infallible> + ?Sized,

Source§

fn next_u32(&mut self) -> u32

Return the next random u32.
Source§

fn next_u64(&mut self) -> u64

Return the next random u64.
Source§

fn fill_bytes(&mut self, dst: &mut [u8])

Fill dest with random data. Read more
Source§

impl<R> RngCore for R
where R: Rng,

Source§

impl<R> RngExt for R
where R: Rng + ?Sized,

Source§

fn random<T>(&mut self) -> T

Return a random value via the StandardUniform distribution. Read more
Source§

fn random_iter<T>(self) -> Iter<StandardUniform, Self, T> ⓘ

Return an iterator over random variates Read more
Source§

fn random_range<T, R>(&mut self, range: R) -> T
where T: SampleUniform, R: SampleRange<T>,

Generate a random value in the given range. Read more
Source§

fn random_bool(&mut self, p: f64) -> bool

Return a bool with a probability p of being true. Read more
Source§

fn random_ratio(&mut self, numerator: u32, denominator: u32) -> bool

Return a bool with a probability of numerator/denominator of being true. Read more
Source§

fn sample<T, D>(&mut self, distr: D) -> T
where 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,

Create an iterator that generates values using the given distribution. Read more
Source§

fn fill<T>(&mut self, dest: &mut [T])
where T: Fill,

Fill any type implementing Fill with random data Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<R> TryCryptoRng for R
where R: DerefMut, <R as Deref>::Target: TryCryptoRng,

Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<R> TryRng for R
where R: DerefMut, <R as Deref>::Target: TryRng,

Source§

type Error = <<R as Deref>::Target as TryRng>::Error

The type returned in the event of a RNG error. Read more
Source§

fn try_next_u32(&mut self) -> Result<u32, <R as TryRng>::Error>

Return the next random u32.
Source§

fn try_next_u64(&mut self) -> Result<u64, <R as TryRng>::Error>

Return the next random u64.
Source§

fn try_fill_bytes(&mut self, dst: &mut [u8]) -> Result<(), <R as TryRng>::Error>

Fill dst entirely with random data.
Source§

impl<R> TryRngCore for R
where R: TryRng,

Source§

type Error = <R as TryRng>::Error

👎Deprecated since 0.10.0:

use TryRng instead

Error type.
Source§

impl<T> Upcast<T> for T

Source§

fn upcast(&self) -> Option<&T>

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more