Slide 9
Slide 9 text
9
@OptionSet
struct Permissions {
private enum Perm: Int {
case read
case write
case execute
}
}
struct Permissions {
private enum Perm: Int {
case read
case write
case execute
}
static let read: Self =
Self(rawValue: 1 << Perm.rea
static let write: Self =
Self(rawValue: 1 << Perm.wri
static let execute: Self =
Self(rawValue: 1 << Perm.exe
}
"UUBDIFE.BDSPͷྫ
Attached macro
ల։