如何在 where 子句中使用协议扩展
How to use protocol extensions with where clause
protocol aView: class { }
extension aView where Self: UIView { }
任何人都可以帮助我理解这段代码吗?
您的扩展程序将功能扩展到所有类型:
- 符合
aView
和
- 属于
UIView
类型
protocol aView: class { }
extension aView where Self: UIView { }
任何人都可以帮助我理解这段代码吗?
您的扩展程序将功能扩展到所有类型:
- 符合
aView
和
- 属于
UIView
类型