def classify_rust_type(type): type_class = type.GetTypeClass() if type_class == lldb.eTypeClassStruct: return classify_struct(type.name, type.fields) if type_class == lldb.eTypeClassUnion: return classify_union(type.fields) return RustType.OTHER
def classify_rust_type(type): # type: (SBType) -> RustType type_class = type.GetTypeClass() if type_class == eTypeClassStruct: return classify_struct(type.name, type.fields) if type_class == eTypeClassUnion: return classify_union(type.fields) if type_class == eTypeClassPointer: return classify_pointer(type.name) return RustType.OTHER