Instance Methodswift 6.0.3FoundationEssentials
encode(to:)
- iOS
- 16+
- macOS
- 13+
- tvOS
- 16+
- watchOS
- 9+
func encode(to encoder: any Encoder) throws
func encode(to encoder: any Encoder) throws
s20FoundationEssentials6LocaleV11SubdivisionV6encode2toys7Encoder_p_tKF
What are these?1O4MK
import FoundationEssentials
struct Subdivision
struct Locale
Locale
encapsulates information about linguistic, cultural, and technological conventions and standards. Examples of information encapsulated by a locale include the symbol used for the decimal separator in numbers and the way dates are formatted.
protocol Encoder
A type that can encode values into a native format for external representation.
init(_ identifier: String)
Creates a subdivision with the given identifier
init(from decoder: any Decoder) throws
init(stringLiteral value: String)
static let cldrKeywordKey: ICUCLDRKey
static let legacyKeywordKey: ICULegacyKey
static func subdivision(for region: Locale.Region) -> Locale.Subdivision
Returns the subdivision representing the given region as a whole. For example, returns a subdivision with the “uszzzz” identifier for the entire US region
var debugDescription: String { get }
var identifier: String { get set }
static func == (lhs: Locale.Subdivision, rhs: Locale.Subdivision) -> Bool
func hash(into hasher: inout Hasher)