📜  快速打印结构名称 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:00:59.099000             🧑  作者: Mango

代码示例1
// Swift 5
print("Name of struct instance type> \(type(of: structInstance.self))")
print("Name of struct type> \(StructType.self)")