Enum encode_unicode::error::Utf16PairError
source · [−]pub enum Utf16PairError {
UnexpectedTrailingSurrogate,
UnmatchedLeadingSurrogate,
Incomplete,
}
Expand description
Error returned by Utf16CharDecoder
when it encounters an invalid sequence.
Variants
UnexpectedTrailingSurrogate
A trailing surrogate was not preceeded by a leading surrogate.
UnmatchedLeadingSurrogate
A leading surrogate was followed by an unit that was not a trailing surrogate.
Incomplete
A trailing surrogate was expected when the end was reached.
Trait Implementations
sourceimpl Clone for Utf16PairError
impl Clone for Utf16PairError
sourcefn clone(&self) -> Utf16PairError
fn clone(&self) -> Utf16PairError
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 Utf16PairError
impl Debug for Utf16PairError
sourceimpl Display for Utf16PairError
impl Display for Utf16PairError
sourceimpl Error for Utf16PairError
impl Error for Utf16PairError
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<Utf16PairError> for Utf16PairError
impl PartialEq<Utf16PairError> for Utf16PairError
impl Copy for Utf16PairError
impl Eq for Utf16PairError
impl StructuralEq for Utf16PairError
impl StructuralPartialEq for Utf16PairError
Auto Trait Implementations
impl RefUnwindSafe for Utf16PairError
impl Send for Utf16PairError
impl Sync for Utf16PairError
impl Unpin for Utf16PairError
impl UnwindSafe for Utf16PairError
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