pub trait FromJsType: Sized {
type From: Managed + Value;
// Provided methods
fn from_js_type<'a, C>(
_cx: &mut C,
_arg: Handle<'_, Self::From>,
) -> Result<Self, Throw>
where C: Context<'a> { ... }
fn from_option_js_type<'a, C>(
_cx: &mut C,
_arg: Option<Handle<'_, Self::From>>,
) -> Result<Self, Throw>
where C: Context<'a> { ... }
}Required Associated Types§
Provided Methods§
fn from_js_type<'a, C>(
_cx: &mut C,
_arg: Handle<'_, Self::From>,
) -> Result<Self, Throw>where
C: Context<'a>,
fn from_option_js_type<'a, C>(
_cx: &mut C,
_arg: Option<Handle<'_, Self::From>>,
) -> Result<Self, Throw>where
C: Context<'a>,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".