#[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
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