Nullish
public enum Nullish<Wrapped> : ExpressibleByNilLiteral
extension Nullish: Equatable where Wrapped: Equatable
Wrapped enum for types that can be null, undefined, or defined.
-
Object is semantically null.
Declaration
Swift
case null
-
Object is semantically undefined (same as
nil
).Declaration
Swift
case undefined
-
Object is defined.
Declaration
Swift
case defined(Wrapped)
-
Declaration
Swift
public init(nilLiteral: ())