pub enum InvalidUtf16Tuple {
FirstIsTrailingSurrogate,
SuperfluousSecond,
MissingSecond,
InvalidSecond,
}
Expand description
Reasons why one or two u16
s are not valid UTF-16, in sinking precedence.
Variants§
FirstIsTrailingSurrogate
The first unit is a trailing/low surrogate, which is never valid.
Note that the value of a low surrogate is actually higher than a high surrogate.
SuperfluousSecond
You provided a second unit, but the first one stands on its own.
MissingSecond
The first and only unit requires a second unit.
InvalidSecond
The first unit requires a second unit, but it’s not a trailing/low surrogate.
Note that the value of a low surrogate is actually higher than a high surrogate.
Trait Implementations§
Source§impl Clone for InvalidUtf16Tuple
impl Clone for InvalidUtf16Tuple
Source§fn clone(&self) -> InvalidUtf16Tuple
fn clone(&self) -> InvalidUtf16Tuple
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 InvalidUtf16Tuple
impl Debug for InvalidUtf16Tuple
Source§impl Display for InvalidUtf16Tuple
impl Display for InvalidUtf16Tuple
Source§impl Error for InvalidUtf16Tuple
impl Error for InvalidUtf16Tuple
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 InvalidUtf16Tuple
impl PartialEq for InvalidUtf16Tuple
impl Copy for InvalidUtf16Tuple
impl Eq for InvalidUtf16Tuple
impl StructuralPartialEq for InvalidUtf16Tuple
Auto Trait Implementations§
impl Freeze for InvalidUtf16Tuple
impl RefUnwindSafe for InvalidUtf16Tuple
impl Send for InvalidUtf16Tuple
impl Sync for InvalidUtf16Tuple
impl Unpin for InvalidUtf16Tuple
impl UnwindSafe for InvalidUtf16Tuple
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
)