trait DictionaryFromJSVal: Sized {
// Required method
fn create(
cx: JSContext,
value: HandleValue<'_>,
can_gc: CanGc,
) -> Result<ConversionResult<Self>, ()>;
}
Expand description
Helper to abstract the conversion process of a JS value into many different WebIDL dictionaries.
Required Methods§
fn create( cx: JSContext, value: HandleValue<'_>, can_gc: CanGc, ) -> Result<ConversionResult<Self>, ()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.