Type Alias mozjs_sys::jsapi::JSErrorCallback

source ·
pub type JSErrorCallback = Option<unsafe extern "C" fn(userRef: *mut c_void, errorNumber: c_uint) -> *const JSErrorFormatString>;

Aliased Type§

enum JSErrorCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: u32) -> *const JSErrorFormatString),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: u32) -> *const JSErrorFormatString)

Some value of type T.