UnicodeDecodingResult

enum UnicodeDecodingResult

The result of one Unicode decoding step.

Inheritance Equatable

Each UnicodeDecodingResult instance can represent a Unicode scalar value, an indication that no more Unicode scalars are available, or an indication of a decoding error.

Cases

case emptyInput Required

An indication that no more Unicode scalars are available in the input.

Declaration

case emptyInput
case error Required

An indication of a decoding error.

Declaration

case error
case scalarValue Required

A decoded Unicode scalar value.

Declaration

case scalarValue(: Unicode.Scalar)

Type Methods

func !=(lhs: Self, rhs: Self) -> Bool Required

Declaration

public static func !=(lhs: Self, rhs: Self) -> Bool
func ==(lhs: UnicodeDecodingResult, rhs: UnicodeDecodingResult) -> Bool Required

Returns a Boolean value indicating whether two values are equal.

Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

Declaration

@inlinable public static func ==(lhs: UnicodeDecodingResult, rhs: UnicodeDecodingResult) -> Bool