Data
public enum Data<T>
extension Data: ExpressibleByArrayLiteral
extension Data: Encodable where T: Encodable
extension Data: ExpressibleByFloatLiteral where T: ExpressibleByFloatLiteral
extension Data: ExpressibleByIntegerLiteral where T: ExpressibleByIntegerLiteral
extension Data: ExpressibleByUnicodeScalarLiteral where T: ExpressibleByUnicodeScalarLiteral
extension Data: ExpressibleByExtendedGraphemeClusterLiteral where T: ExpressibleByExtendedGraphemeClusterLiteral
extension Data: ExpressibleByStringLiteral where T: ExpressibleByStringLiteral
extension Data: ExpressibleByStringInterpolation where T: StringProtocol
Encapsulation of either a constant value or a collection of changing data.
-
Constant, fixed value.
Declaration
Swift
case constant(_: T)
-
Changing collection of values.
Declaration
Swift
case variable(_: [T])
-
Declaration
Swift
public init(arrayLiteral elements: T...)
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(floatLiteral value: T.FloatLiteralType)
-
Declaration
Swift
public init(integerLiteral value: T.IntegerLiteralType)
-
Declaration
Swift
public init(unicodeScalarLiteral value: T.UnicodeScalarLiteralType)
-
Declaration
Swift
public init(extendedGraphemeClusterLiteral value: T.ExtendedGraphemeClusterLiteralType)
-
Declaration
Swift
public init(stringLiteral value: T.StringLiteralType)