Enum encode_unicode::error::InvalidUtf16Tuple
[−]
[src]
pub enum InvalidUtf16Tuple { FirstIsTrailingSurrogate, SuperfluousSecond, MissingSecond, InvalidSecond, }
Reasons why one or two u16
s are not valid UTF-16, in sinking precedence.
Variants
FirstIsTrailingSurrogate
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.
SuperfluousSecond
You provided a second unit, but the first one stands on its own.
MissingSecond
The first and only unit requires a second unit.
InvalidSecond
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]
fn clone(&self) -> InvalidUtf16Tuple
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 InvalidUtf16Tuple
[src]
impl Debug for InvalidUtf16Tuple
[src]
impl PartialEq for InvalidUtf16Tuple
[src]
fn eq(&self, __arg_0: &InvalidUtf16Tuple) -> 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 InvalidUtf16Tuple
[src]
impl Error for InvalidUtf16Tuple
[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