pub enum InvalidUtf16Slice {
EmptySlice,
FirstLowSurrogate,
MissingSecond,
SecondNotLowSurrogate,
}
Expand description
Reasons why a slice of u16
s doesn’t start with valid UTF-16.
Variants§
EmptySlice
The slice is empty.
FirstLowSurrogate
The first unit is a low surrogate.
MissingSecond
The first and only unit requires a second unit.
SecondNotLowSurrogate
The first unit requires a second one, but it’s not a trailing surrogate.
Trait Implementations§
Source§impl Clone for InvalidUtf16Slice
impl Clone for InvalidUtf16Slice
Source§fn clone(&self) -> InvalidUtf16Slice
fn clone(&self) -> InvalidUtf16Slice
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 InvalidUtf16Slice
impl Debug for InvalidUtf16Slice
Source§impl Display for InvalidUtf16Slice
impl Display for InvalidUtf16Slice
Source§impl Error for InvalidUtf16Slice
impl Error for InvalidUtf16Slice
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 InvalidUtf16Slice
impl PartialEq for InvalidUtf16Slice
impl Copy for InvalidUtf16Slice
impl Eq for InvalidUtf16Slice
impl StructuralPartialEq for InvalidUtf16Slice
Auto Trait Implementations§
impl Freeze for InvalidUtf16Slice
impl RefUnwindSafe for InvalidUtf16Slice
impl Send for InvalidUtf16Slice
impl Sync for InvalidUtf16Slice
impl Unpin for InvalidUtf16Slice
impl UnwindSafe for InvalidUtf16Slice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)