Skip to main content

types_compatible

Function types_compatible 

Source
pub fn types_compatible(a: &ObjCQualifiedType, b: &ObjCQualifiedType) -> bool
Expand description

Check structural type compatibility between two ObjC types.

This is a recursive check:

  • Primitive types must match exactly.
  • id is compatible with any object type (and vice versa).
  • Pointers must match in depth and pointee compatibility.
  • Struct/union names must match.
  • Qualifiers are ignored here (checked separately).