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
FirstIsTrailingSurrogateThe 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.
SuperfluousSecondYou provided a second unit, but the first one stands on its own.
MissingSecondThe first and only unit requires a second unit.
InvalidSecondThe 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) -> bool1.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