pub trait JSValue<'a>: Sized {
// Required method
fn convert_to_rust(
env: &'a JsEnv,
js_value: napi_value
) -> Result<Self, NjError>;
// Provided method
fn label() -> &'static str { ... }
}
Expand description
Convert napi value to Rust value