pub enum Utf16PairError {
UnexpectedTrailingSurrogate,
UnmatchedLeadingSurrogate,
Incomplete,
}
Expand description
Types of invalid sequences encountered by Utf16CharParser
.
Variants§
UnexpectedTrailingSurrogate
A trailing surrogate was not preceeded by a leading surrogate.
UnmatchedLeadingSurrogate
A leading surrogate was followed by an unit that was not a trailing surrogate.
Incomplete
A trailing surrogate was expected when the end was reached.
Trait Implementations§
Source§impl Clone for Utf16PairError
impl Clone for Utf16PairError
Source§fn clone(&self) -> Utf16PairError
fn clone(&self) -> Utf16PairError
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 Utf16PairError
impl Debug for Utf16PairError
Source§impl Display for Utf16PairError
impl Display for Utf16PairError
Source§impl Error for Utf16PairError
impl Error for Utf16PairError
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 Utf16PairError
impl PartialEq for Utf16PairError
impl Copy for Utf16PairError
impl Eq for Utf16PairError
impl StructuralPartialEq for Utf16PairError
Auto Trait Implementations§
impl Freeze for Utf16PairError
impl RefUnwindSafe for Utf16PairError
impl Send for Utf16PairError
impl Sync for Utf16PairError
impl Unpin for Utf16PairError
impl UnwindSafe for Utf16PairError
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
)