Type Alias mozjs_sys::jsapi::JSNative

source ·
pub type JSNative = Option<unsafe extern "C" fn(cx: *mut JSContext, argc: c_uint, vp: *mut Value) -> bool>;

Aliased Type§

enum JSNative {
    None,
    Some(unsafe extern "C" fn(_: *mut JSContext, _: u32, _: *mut Value) -> bool),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut JSContext, _: u32, _: *mut Value) -> bool)

Some value of type T.