SingleValueDecodingContainer
A container that can support the storage and direct decoding of a single nonkeyed value.
protocol SingleValueDecodingContainer
Requirements
var codingPath: [CodingKey]
The path of coding keys taken to get to this point in encoding.
func decode(String
.Type) throws -> String Decodes a single value of the given type.
func decode(Bool
.Type) throws -> Bool Decodes a single value of the given type.
func decode(Double
.Type) throws -> Double Decodes a single value of the given type.
func decode(Float
.Type) throws -> Float Decodes a single value of the given type.
func decode(Int
.Type) throws -> Int Decodes a single value of the given type.
func decode(UInt
.Type) throws -> UInt Decodes a single value of the given type.
func decode<T>(T
.Type) throws -> T Decodes a single value of the given type.
func decode(Int8
.Type) throws -> Int8 Decodes a single value of the given type.
func decode(Int16
.Type) throws -> Int16 Decodes a single value of the given type.
func decode(Int32
.Type) throws -> Int32 Decodes a single value of the given type.
func decode(Int64
.Type) throws -> Int64 Decodes a single value of the given type.
func decode(UInt8
.Type) throws -> UInt8 Decodes a single value of the given type.
func decode(UInt16
.Type) throws -> UInt16 Decodes a single value of the given type.
func decode(UInt32
.Type) throws -> UInt32 Decodes a single value of the given type.
func decode(UInt64
.Type) throws -> UInt64 Decodes a single value of the given type.
func decodeNil(
) -> Bool Decodes a null value.