EnumerationFoundation5.9.0
GrammaticalNumber
- iOS
- 15.0+
- macOS
- 12.0+
- tvOS
- 15.0+
- watchOS
- 8.0+
enum GrammaticalNumber
Citizens in Foundation
Conformances
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol RawRepresentable
A type that can be converted to and from an associated raw value.
Members
case plural
case pluralFew
case pluralMany
case pluralTwo
case singular
case zero
init(from: Decoder
) throws init?(rawValue: Int
) func encode(to: Encoder
) throws
Features
init(from: Decoder
) throws Creates a new instance by decoding from the given decoder, when the type’s
RawValue
isInt
.var hashValue: Int
static func != (Self, Self
) -> Bool func hash(into: inout Hasher
)