← 返回卡片

原书出处

Swifter100个Swift开发必备Tip

10 Tip 10 字面量转换

2015年5月第1版 · 核验版本的摘录快照 · 导入于 2026-11-14T02:34:45.679Z

所有的字面量转换接口都定义了一个typealias和对应的init方法。拿BooleanLiteralConvertible举个例子: protocol BooleanLiteralConvertible { typealias BooleanLiteralType /// Create

此预览只包含定位所需的摘录和上下文。

原书定位详情

来源:a19c7933-4eda-4176-aebd-30fe7e1ad292

正文位置:extracted/Swifter100个Swift开发必备Tip/_epub-src/OEBPS/text00016.html

EPUB SHA-256:e509e13f2fa4d48de64d71e5653f8976eb6a7b8d79deca924e05745160cd880e