Enum encode_unicode::error::Utf16ArrayError
source · [−]pub enum Utf16ArrayError {
FirstIsTrailingSurrogate,
SecondIsNotTrailingSurrogate,
}
Expand description
Error returned when an [u16; 2]
doesn’t form a valid UTF-16 codepoint.
Variants
FirstIsTrailingSurrogate
The first element is a trailing / low surrogate, which is never valid.
SecondIsNotTrailingSurrogate
The second element is needed, but is not a trailing surrogate.
Trait Implementations
sourceimpl Clone for Utf16ArrayError
impl Clone for Utf16ArrayError
sourcefn clone(&self) -> Utf16ArrayError
fn clone(&self) -> Utf16ArrayError
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 Utf16ArrayError
impl Debug for Utf16ArrayError
sourceimpl Display for Utf16ArrayError
impl Display for Utf16ArrayError
sourceimpl Error for Utf16ArrayError
impl Error for Utf16ArrayError
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<Utf16ArrayError> for Utf16ArrayError
impl PartialEq<Utf16ArrayError> for Utf16ArrayError
impl Copy for Utf16ArrayError
impl Eq for Utf16ArrayError
impl StructuralEq for Utf16ArrayError
impl StructuralPartialEq for Utf16ArrayError
Auto Trait Implementations
impl RefUnwindSafe for Utf16ArrayError
impl Send for Utf16ArrayError
impl Sync for Utf16ArrayError
impl Unpin for Utf16ArrayError
impl UnwindSafe for Utf16ArrayError
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