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§
Source§impl Clone for Utf16ArrayError
impl Clone for Utf16ArrayError
Source§fn clone(&self) -> Utf16ArrayError
fn clone(&self) -> Utf16ArrayError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Utf16ArrayError
impl Debug for Utf16ArrayError
Source§impl Display for Utf16ArrayError
impl Display for Utf16ArrayError
Source§impl Error for Utf16ArrayError
impl Error for Utf16ArrayError
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§impl PartialEq for Utf16ArrayError
impl PartialEq for Utf16ArrayError
impl Copy for Utf16ArrayError
impl Eq for Utf16ArrayError
impl StructuralPartialEq for Utf16ArrayError
Auto Trait Implementations§
impl Freeze for Utf16ArrayError
impl RefUnwindSafe for Utf16ArrayError
impl Send for Utf16ArrayError
impl Sync for Utf16ArrayError
impl Unpin for Utf16ArrayError
impl UnwindSafe for Utf16ArrayError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more