pub trait FromValue<'cx>: Sized {
type Config;
// Required method
fn from_value(
cx: &'cx Context,
value: &Value<'_>,
strict: bool,
config: Self::Config,
) -> Result<Self>;
}Expand description
Represents types that can be converted to from JavaScript Values.
Required Associated Types§
Required Methods§
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.