目录
目录README.md

Test results Latest release swift 5.2 shield swift 5.3 shield swift 5.4 shield swift 5.5 shield swift 5.6 shield Platforms: macOS, iOS, tvOS, Linux

Coercion

Support for coercing basic data types.

Provides:

  • coercion protocols which define asInt, asString and so on
  • implementations of these protocols for foundation data types
  • a Converter protocol which can take an Any object and turn it into a known type using the coercion protocols
  • subscript operators for Dictionary which look up a key by type: asInt:, asString: etc, performing coercion where possible
关于
85.0 KB
邀请码