Skip to main content

FromJSValue

Trait FromJSValue 

Source
pub trait FromJSValue: Sized {
    // Required method
    fn from_jsvalue(value: &JSValue, ctx: &JSContext) -> Option<Self>
       where Self: Sized;
}

Required Methods§

Source

fn from_jsvalue(value: &JSValue, ctx: &JSContext) -> Option<Self>
where Self: Sized,

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.

Implementors§