pub trait ToJSValConvertible {
    unsafe fn to_jsval(&self, cx: *mut JSContext, rval: MutableHandle<'_, Value>);
}
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