pub struct Utf16DecodeError { /* private fields */ }Expand description
Error returned when decoding invalid UTF-16 data.
This is a crate-local equivalent of std::string::FromUtf16Error, which cannot be
constructed outside of std.
Returned by [SmartString::from_utf16be], [SmartString::from_utf16le], and their variants.
Trait Implementations§
Source§impl Clone for Utf16DecodeError
impl Clone for Utf16DecodeError
Source§fn clone(&self) -> Utf16DecodeError
fn clone(&self) -> Utf16DecodeError
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 Utf16DecodeError
impl Debug for Utf16DecodeError
Source§impl Display for Utf16DecodeError
impl Display for Utf16DecodeError
Source§impl PartialEq for Utf16DecodeError
impl PartialEq for Utf16DecodeError
impl Eq for Utf16DecodeError
impl StructuralPartialEq for Utf16DecodeError
Auto Trait Implementations§
impl Freeze for Utf16DecodeError
impl RefUnwindSafe for Utf16DecodeError
impl Send for Utf16DecodeError
impl Sync for Utf16DecodeError
impl Unpin for Utf16DecodeError
impl UnsafeUnpin for Utf16DecodeError
impl UnwindSafe for Utf16DecodeError
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