Enum encode_unicode::error::InvalidUtf16Slice
[−]
[src]
pub enum InvalidUtf16Slice { EmptySlice, FirstLowSurrogate, MissingSecond, SecondNotLowSurrogate, }
Reasons why a slice of u16
s doesn't start with valid UTF-16.
Variants
EmptySlice
The slice is empty.
FirstLowSurrogate
The first unit is a low surrogate.
MissingSecond
The first and only unit requires a second unit.
SecondNotLowSurrogate
The first unit requires a second one, but it's not a low surrogate.
Trait Implementations
impl Clone for InvalidUtf16Slice
[src]
fn clone(&self) -> InvalidUtf16Slice
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for InvalidUtf16Slice
[src]
impl Debug for InvalidUtf16Slice
[src]
impl PartialEq for InvalidUtf16Slice
[src]
fn eq(&self, __arg_0: &InvalidUtf16Slice) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Eq for InvalidUtf16Slice
[src]
impl Error for InvalidUtf16Slice
[src]
fn description(&self) -> &'static str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more