Expand description
Implemented for a type via ffi_type
, gives meta info for a type.
This trait must be implemented correctly, or else the generated bindings disagree in
their type layout from the actual Rust type, leading to immediate UB upon function invocation.
impl<'a, T1, T2, T3, R> CTypeInfo for extern "C" fn(_: T1, _: T2, _: T3) -> R where
T1: CTypeInfo + 'a,
T2: CTypeInfo + 'a,
T3: CTypeInfo + 'a,
R: CTypeInfo + 'a,
impl<'a, T1, T2, T3, R> CTypeInfo for Option<extern "C" fn(_: T1, _: T2, _: T3) -> R> where
T1: CTypeInfo + 'a,
T2: CTypeInfo + 'a,
T3: CTypeInfo + 'a,
R: CTypeInfo + 'a,