Type Alias mozjs_sys::jsapi::JS::RealmNameCallback

source ·
pub type RealmNameCallback = Option<unsafe extern "C" fn(cx: *mut JSContext, realm: *mut Realm, buf: *mut c_char, bufsize: usize, nogc: *const AutoRequireNoGC)>;

Aliased Type§

enum RealmNameCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut JSContext, _: *mut Realm, _: *mut i8, _: usize, _: *const AutoRequireNoGC)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut JSContext, _: *mut Realm, _: *mut i8, _: usize, _: *const AutoRequireNoGC))

Some value of type T.