pub enum InvalidUtf16Array {
FirstIsTrailingSurrogate,
SecondIsNotTrailingSurrogate,
}
Expand description
Reasons why a [u16; 2]
doesn’t form a valid UTF-16 codepoint.
Variants§
FirstIsTrailingSurrogate
The first unit is a trailing/low surrogate, which is never valid.
SecondIsNotTrailingSurrogate
The second unit is needed, but is not a trailing surrogate.
Trait Implementations§
Source§impl Clone for InvalidUtf16Array
impl Clone for InvalidUtf16Array
Source§fn clone(&self) -> InvalidUtf16Array
fn clone(&self) -> InvalidUtf16Array
Returns a duplicate 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 InvalidUtf16Array
impl Debug for InvalidUtf16Array
Source§impl Display for InvalidUtf16Array
impl Display for InvalidUtf16Array
Source§impl Error for InvalidUtf16Array
impl Error for InvalidUtf16Array
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 InvalidUtf16Array
impl PartialEq for InvalidUtf16Array
impl Copy for InvalidUtf16Array
impl Eq for InvalidUtf16Array
impl StructuralPartialEq for InvalidUtf16Array
Auto Trait Implementations§
impl Freeze for InvalidUtf16Array
impl RefUnwindSafe for InvalidUtf16Array
impl Send for InvalidUtf16Array
impl Sync for InvalidUtf16Array
impl Unpin for InvalidUtf16Array
impl UnwindSafe for InvalidUtf16Array
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