Primitive
enum Primitive : Hashable
This enum contains cases for all primitive types PrimitivesEnumTranslator can handle. The provided cases correspond to the types from the standard library, that have no mode of serializing themselves to another type (rely on a SingleValue(Encoding/Decoding)Container).
-
stands for swifts String type
Declaration
Swift
case string
-
stands for swifts Bool type
Declaration
Swift
case bool
-
stands for swifts Float type
Declaration
Swift
case float
-
stands for swifts Double type
Declaration
Swift
case double
-
stands for swifts Int type
Declaration
Swift
case int
-
stands for swifts UInt type
Declaration
Swift
case uInt
-
stands for swifts Int8 type
Declaration
Swift
case int8
-
stands for swifts UInt8 type
Declaration
Swift
case uInt8
-
stands for swifts Int16 type
Declaration
Swift
case int16
-
stands for swifts UInt16 type
Declaration
Swift
case uInt16
-
stands for swifts Int32 type
Declaration
Swift
case int32
-
stands for swifts UInt32 type
Declaration
Swift
case uInt32
-
stands for swifts Int64 type
Declaration
Swift
case int64
-
stands for swifts UInt64 type
Declaration
Swift
case uInt64
-
stands for any nil value
Declaration
Swift
case `nil`
-
lists all Primitive cases
Declaration
Swift
public static var all: Set<Primitive> { get }
-
Creates a new Primitive for the given type if it matches one of this enums cases.
Declaration
Swift
public init?<T>(from type: T.Type)