Type Method

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.UTF16.EncodedScalar?

Discussion