/// Get a field of a struct type.
Get a field of a struct type.
Get a field of a struct type .
pub fn struct_type_field(ty: Type, offset: usize) -> (String, Type) {
    let info = unsafe { hwStructTypeGetFieldNum(ty.raw(), offset as _) };
    (
        unsafe { mlirIdentifierToStr(info.name, String::from) },
        Type::from_raw(info.type_),
    )
}
pub fn struct_type_field ( ty : Type , offset : usize ) -> ( String , Type ) { let info = unsafe { hwStructTypeGetFieldNum ( ty . raw ( ) , offset as _ ) } ; ( unsafe { mlirIdentifierToStr ( info . name , String :: from ) } , Type :: from_raw ( info . type_ ) , ) }
Get a field of a struct type.
Get a field of a struct type .
ty
Type
offset
usize