swift的类型描述符

swift的类型描述符,第1张

概述Metatype Types A concrete or existential metatype in SIL must describe its representation. This can be: @thin, meaning that it requires no storage and thus necessarily represents an exact type (only a

Metatype Types

A concrete or existential Metatype in SIL must describe its representation. This can be:

@thin,meaning that it requires no storage and thus necessarily represents an exact type (only allowed for concrete Metatypes); @thick,meaning that it stores a reference to a type or (if a concrete class) a subclass of that type; or @objc,meaning that it stores a reference to a class type (or a subclass thereof) using an Objective-C class object representation rather than the native Swift type-object representation.

 

用于类型和函数类型的描述

 

https://github.com/apple/swift/blob/master/docs/SIL.rst#Metatype-types

 

%2 = function_ref @ProtocolCase.normalStruct.init() -> ProtocolCase.normalStruct : [email protected](method) (@thin normalStruct.Type) -> normalStruct // user: %3

@H_403_36@ 总结

以上是内存溢出为你收集整理的swift的类型描述符全部内容,希望文章能够帮你解决swift的类型描述符所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1017446.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存