没有合适的资源?快使用搜索试试~ 我知道了~
Options:有时在某些情况下,您想在OptionSet中使用Enum或希望Enum由Raw的Int类型支持,但同时也具有St...
共49个文件
swift:17个
md:13个
yml:9个
需积分: 12 0 下载量 99 浏览量
2021-04-07
21:27:35
上传
评论
收藏 151KB ZIP 举报
温馨提示
选项 Swift软件包,用于更强大的Enum类型。 目录 介绍 特征 安装 用法 设置一个MappedValueRepresentable枚举 使用MappedValueCollectionRepresented 使用MappedEnum类型的可编码枚举 在ESet中使用OptionSet中的EnumSet 将EnumSet转换为Enum数组 使用MappedValueRepresentable Enum的可编码EnumSet 进一步的代码文档 执照 介绍 选项为Enum和OptionSet类型提供功能,例如: 除了RawType rawValue外,还提供其他值类型 能够在Enum和OptionSet类型之间互换 对Codable OptionSet使用其他值类型 例子 假设您有Enum类型: enum ContinuousIntegrationSystem {
资源推荐
资源详情
资源评论
收起资源包目录
Options-main.zip (49个子文件)
Options-main
codecov.yml 20B
.github
workflows
arm.yml 2KB
ubuntu.yml 2KB
macOS.yml 2KB
Documentation
Reference
Options
structs
EnumSet.md 856B
MappedEnum.md 1KB
protocols
MappedValueCollectionRepresented.md 264B
MappedValueRepresentable.md 898B
MappedValueDictionaryRepresented.md 250B
extensions
MappedValueCollectionRepresented.md 1KB
EnumSet.md 972B
MappedValueRepresentable.md 823B
MappedValueDictionaryRepresented.md 1KB
typealiases
EnumSet.RawValue.md 96B
enums
MappedValueRepresentableError.md 261B
README.md 905B
.hound.yml 41B
Sources
Options
EnumSet.swift 3KB
MappedValueRepresentableError.swift 191B
MappedEnum.swift 1KB
MappedValueDictionaryRepresented.swift 2KB
MappedValueCollectionRepresented.swift 2KB
MappedValueRepresentable.swift 1KB
bitrise.yml 924B
logo.svg 95KB
.swift-version 2B
.swiftformat 161B
.circleci
config.yml 3KB
Scripts
Dockerfile 180B
images.sh 423B
script.sh 2KB
before_install.sh 1KB
Tests
OptionsTests
MappedValueCollectionRepresentedTests.swift 2KB
MappedEnumTests.swift 1KB
MappedValueRepresentableTests.swift 453B
XCTestManifests.swift 2KB
Mocks
MockError.swift 83B
MockCollectionEnum.swift 285B
MockDictionaryEnum.swift 315B
EnumSetTests.swift 2KB
MappedValueDictionaryRepresentedTests.swift 2KB
LinuxMain.swift 119B
.travis.yml 547B
LICENSE 1KB
README.md 10KB
.swiftlint.yml 3KB
Package.swift 2KB
logo.png 87KB
.gitignore 3KB
共 49 条
- 1
资源评论
温暖如故
- 粉丝: 22
- 资源: 4642
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功