pub struct Utf16;Expand description
Error caused by invalid UTF-16 data
Trait Implementations§
Source§impl Error for Utf16
Available on crate feature std only.
impl Error for Utf16
Available on crate feature
std only.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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DecodeUtf16Error> for Utf16
impl From<DecodeUtf16Error> for Utf16
Source§fn from(_: DecodeUtf16Error) -> Self
fn from(_: DecodeUtf16Error) -> Self
Converts to this type from the input type.
Source§impl<'a> From<EncodeUtf16<'a>> for Utf16
impl<'a> From<EncodeUtf16<'a>> for Utf16
Source§fn from(_: EncodeUtf16<'_>) -> Self
fn from(_: EncodeUtf16<'_>) -> Self
Converts to this type from the input type.
impl Copy for Utf16
impl Eq for Utf16
impl StructuralPartialEq for Utf16
Auto Trait Implementations§
impl Freeze for Utf16
impl RefUnwindSafe for Utf16
impl Send for Utf16
impl Sync for Utf16
impl Unpin for Utf16
impl UnsafeUnpin for Utf16
impl UnwindSafe for Utf16
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