pub enum Utf16Error {
InvalidUtf16,
}Available on crate feature
text_utf16 only.Expand description
Errors returned when decoding UTF-16.
Variants§
InvalidUtf16
UTF-16 input contained an invalid surrogate sequence.
Trait Implementations§
Source§impl Clone for Utf16Error
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl Clone for Utf16Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§fn clone(&self) -> Utf16Error
fn clone(&self) -> Utf16Error
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 Utf16Error
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl Debug for Utf16Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl Display for Utf16Error
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl Display for Utf16Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Source§impl Error for Utf16Error
Available on (crate features text_utf8 or text_utf16 or text_utf32 or text_fixed) and (crate features io-std or io) only.
impl Error for Utf16Error
Available on (crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed) and (crate features io-std or io) 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 PartialEq for Utf16Error
Available on crate features text_utf8 or text_utf16 or text_utf32 or text_fixed only.
impl PartialEq for Utf16Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl Copy for Utf16Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl Eq for Utf16Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.impl StructuralPartialEq for Utf16Error
Available on crate features
text_utf8 or text_utf16 or text_utf32 or text_fixed only.Auto Trait Implementations§
impl Freeze for Utf16Error
impl RefUnwindSafe for Utf16Error
impl Send for Utf16Error
impl Sync for Utf16Error
impl Unpin for Utf16Error
impl UnwindSafe for Utf16Error
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