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§
Source§impl Clone for Utf16SliceError
impl Clone for Utf16SliceError
Source§fn clone(&self) -> Utf16SliceError
fn clone(&self) -> Utf16SliceError
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 Utf16SliceError
impl Debug for Utf16SliceError
Source§impl Display for Utf16SliceError
impl Display for Utf16SliceError
Source§impl Error for Utf16SliceError
impl Error for Utf16SliceError
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 Utf16SliceError
impl PartialEq for Utf16SliceError
impl Copy for Utf16SliceError
impl Eq for Utf16SliceError
impl StructuralPartialEq for Utf16SliceError
Auto Trait Implementations§
impl Freeze for Utf16SliceError
impl RefUnwindSafe for Utf16SliceError
impl Send for Utf16SliceError
impl Sync for Utf16SliceError
impl Unpin for Utf16SliceError
impl UnwindSafe for Utf16SliceError
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