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 trailing surrogate.
Trait Implementations
impl Clone for InvalidUtf16Slice
[src]
impl Clone for InvalidUtf16Slice
fn clone(&self) -> InvalidUtf16Slice
[src]
fn clone(&self) -> InvalidUtf16Slice
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for InvalidUtf16Slice
[src]
impl Copy for InvalidUtf16Slice
impl Debug for InvalidUtf16Slice
[src]
impl Debug for InvalidUtf16Slice
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for InvalidUtf16Slice
[src]
impl PartialEq for InvalidUtf16Slice
fn eq(&self, other: &InvalidUtf16Slice) -> bool
[src]
fn eq(&self, other: &InvalidUtf16Slice) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for InvalidUtf16Slice
[src]
impl Eq for InvalidUtf16Slice
impl Error for InvalidUtf16Slice
[src]
impl Error for InvalidUtf16Slice
fn description(&self) -> &'static str
[src]
fn description(&self) -> &'static str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for InvalidUtf16Slice
[src]
impl Display for InvalidUtf16Slice
Auto Trait Implementations
impl Send for InvalidUtf16Slice
impl Send for InvalidUtf16Slice
impl Sync for InvalidUtf16Slice
impl Sync for InvalidUtf16Slice