Trait mozjs::conversions::ToJSValConvertible[][src]

pub trait ToJSValConvertible {
    unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandleValue<'_>);
}
Expand description

A trait to convert Rust types to JSVals.

Required methods

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

Implementations on Foreign Types

Implementors