Required Instance Methodswift 6.0.1Swift

    decode(_:)

    Decodes a value of the given type.

    mutating func decode(_ type: UInt16.Type) throws -> UInt16

    Parameters

    type

    The type of value to decode.

    Returns

    A value of the requested type, if present for the given key and convertible to the requested type.

    Throws

    DecodingError.typeMismatch if the encountered encoded value is not convertible to the requested type.

    DecodingError.valueNotFound if the encountered encoded value is null, or of there are no more values to decode.

    Other requirements

    View members

    Hide members

    This section is hidden by default because it contains too many (41) members.

    Instance members

    Citizens in Swift

    Default implementations