Skip to main content

MlirTypeConverterConversionCallback

Type Alias MlirTypeConverterConversionCallback 

Source
pub type MlirTypeConverterConversionCallback = Option<unsafe extern "C" fn(type_: MlirType, convertedType: *mut MlirType, userData: *mut c_void) -> MlirLogicalResult>;
Expand description

Callback type for type conversion functions. Returns failure or sets convertedType to MlirType{NULL} to indicate failure. If failure is returned, the converter is allowed to try another conversion function to perform the conversion.

Aliased Type§

pub enum MlirTypeConverterConversionCallback {
    None,
    Some(unsafe extern "C" fn(MlirType, *mut MlirType, *mut c_void) -> MlirLogicalResult),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(MlirType, *mut MlirType, *mut c_void) -> MlirLogicalResult)

Some value of type T.