Type Alias mlir_sys::MlirShapedTypeComponentsCallback
source · pub type MlirShapedTypeComponentsCallback = Option<unsafe extern "C" fn(arg1: bool, arg2: isize, arg3: *const i64, arg4: MlirType, arg5: MlirAttribute, arg6: *mut c_void)>;
Expand description
These callbacks are used to return multiple shaped type components from functions while transferring ownership to the caller. The first argument is the has rank boolean followed by the the rank and a pointer to the shape (if applicable). The next argument is the element type, then the attribute. The last argument is an opaque pointer forwarded to the callback by the caller. This callback will be called potentially multiple times for each shaped type components.
Aliased Type§
enum MlirShapedTypeComponentsCallback {
None,
Some(unsafe extern "C" fn(_: bool, _: isize, _: *const i64, _: MlirType, _: MlirAttribute, _: *mut c_void)),
}