encode(_:)
Converts from encoding-independent to encoded representation, returning nil if the scalar can’t be represented in this encoding.
Declaration
static func encode(_ source: Unicode.Scalar) -> Unicode.UTF8.EncodedScalar?Converts from encoding-independent to encoded representation, returning nil if the scalar can’t be represented in this encoding.
static func encode(_ source: Unicode.Scalar) -> Unicode.UTF8.EncodedScalar?