Enum encode_unicode::error::InvalidUtf16Tuple [] [src]

pub enum InvalidUtf16Tuple {
    FirstIsTrailingSurrogate,
    SuperfluousSecond,
    MissingSecond,
    InvalidSecond,
}

Reasons why one or two u16s are not valid UTF-16, in sinking precedence.

Variants

The first unit is a trailing/low surrogate, which is never valid.

Note that the value of a low surrogate is actually higher than a high surrogate.

You provided a second unit, but the first one stands on its own.

The first and only unit requires a second unit.

The first unit requires a second unit, but it's not a trailing/low surrogate.

Note that the value of a low surrogate is actually higher than a high surrogate.

Trait Implementations

impl Clone for InvalidUtf16Tuple
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InvalidUtf16Tuple
[src]

impl Debug for InvalidUtf16Tuple
[src]

Formats the value using the given formatter.

impl PartialEq for InvalidUtf16Tuple
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for InvalidUtf16Tuple
[src]

impl Error for InvalidUtf16Tuple
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl Display for InvalidUtf16Tuple
[src]

Formats the value using the given formatter. Read more