Enum encode_unicode::error::Utf16SliceError
source · [−]pub enum Utf16SliceError {
EmptySlice,
FirstIsTrailingSurrogate,
MissingSecond,
SecondIsNotTrailingSurrogate,
}
Expand description
Error returned when a slice of u16
s doesn’t start with valid UTF-16.
Variants
EmptySlice
The slice is empty.
FirstIsTrailingSurrogate
The first unit is a trailing surrogate.
MissingSecond
The first and only unit requires a second unit.
SecondIsNotTrailingSurrogate
The first unit requires a second one, but it’s not a trailing surrogate.
Trait Implementations
sourceimpl Clone for Utf16SliceError
impl Clone for Utf16SliceError
sourcefn clone(&self) -> Utf16SliceError
fn clone(&self) -> Utf16SliceError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Utf16SliceError
impl Debug for Utf16SliceError
sourceimpl Display for Utf16SliceError
impl Display for Utf16SliceError
sourceimpl Error for Utf16SliceError
impl Error for Utf16SliceError
sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl PartialEq<Utf16SliceError> for Utf16SliceError
impl PartialEq<Utf16SliceError> for Utf16SliceError
impl Copy for Utf16SliceError
impl Eq for Utf16SliceError
impl StructuralEq for Utf16SliceError
impl StructuralPartialEq for Utf16SliceError
Auto Trait Implementations
impl RefUnwindSafe for Utf16SliceError
impl Send for Utf16SliceError
impl Sync for Utf16SliceError
impl Unpin for Utf16SliceError
impl UnwindSafe for Utf16SliceError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more