Skip to main content

JsonnetNativeCallback

Type Alias JsonnetNativeCallback 

Source
pub type JsonnetNativeCallback = Option<unsafe extern "C" fn(ctx: *mut c_void, argv: *const *const JsonnetJsonValue, success: *mut c_int) -> *mut JsonnetJsonValue>;

Aliased Type§

pub enum JsonnetNativeCallback {
    None,
    Some(unsafe extern "C" fn(*mut c_void, *const *const JsonnetJsonValue, *mut i32) -> *mut JsonnetJsonValue),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *const *const JsonnetJsonValue, *mut i32) -> *mut JsonnetJsonValue)

Some value of type T.