Struct utf16_iter::report::Utf16CharsError
source · #[non_exhaustive]pub struct Utf16CharsError;
Expand description
A type for signaling UTF-16 errors.
The value of the unpaired surrogate is not exposed in order
to keep the Result
type (and Option
-wrapping thereof)
the same size as char
. See an issue about the representation.
Note: core::error::Error
is not implemented due to implementing it
being an unstable feature at the time of writing.
Trait Implementations§
source§impl Debug for Utf16CharsError
impl Debug for Utf16CharsError
source§impl Display for Utf16CharsError
impl Display for Utf16CharsError
source§impl PartialEq for Utf16CharsError
impl PartialEq for Utf16CharsError
source§fn eq(&self, other: &Utf16CharsError) -> bool
fn eq(&self, other: &Utf16CharsError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Utf16CharsError
Auto Trait Implementations§
impl Freeze for Utf16CharsError
impl RefUnwindSafe for Utf16CharsError
impl Send for Utf16CharsError
impl Sync for Utf16CharsError
impl Unpin for Utf16CharsError
impl UnwindSafe for Utf16CharsError
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