Enum encode_unicode::error::InvalidUtf16Slice [] [src]

pub enum InvalidUtf16Slice {
    EmptySlice,
    FirstLowSurrogate,
    MissingSecond,
    SecondNotLowSurrogate,
}

Reasons why a slice of u16s doesn't start with valid UTF-16.

Variants

The slice is empty.

The first unit is a low surrogate.

The first and only unit requires a second unit.

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

Trait Implementations

impl Clone for InvalidUtf16Slice
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for InvalidUtf16Slice
[src]

impl Debug for InvalidUtf16Slice
[src]

Formats the value using the given formatter.

impl PartialEq for InvalidUtf16Slice
[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 InvalidUtf16Slice
[src]

impl Error for InvalidUtf16Slice
[src]

A short description of the error. Read more

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

impl Display for InvalidUtf16Slice
[src]

Formats the value using the given formatter. Read more