pub enum FromUtf16Error<E> {
InvalidUtf16(FromUtf16Error),
LengthExceeded(LengthExceeded<E>),
}Expand description
A possible error when converting a UTF-16 slice to a bounded string.
Variants§
InvalidUtf16(FromUtf16Error)
LengthExceeded(LengthExceeded<E>)
Trait Implementations§
Source§impl<E: Debug> Debug for FromUtf16Error<E>
impl<E: Debug> Debug for FromUtf16Error<E>
Source§impl<E: Encoding> Display for FromUtf16Error<E>
impl<E: Encoding> Display for FromUtf16Error<E>
Source§impl<E: Encoding + 'static> Error for FromUtf16Error<E>
impl<E: Encoding + 'static> Error for FromUtf16Error<E>
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<E> From<FromUtf16Error> for FromUtf16Error<E>
impl<E> From<FromUtf16Error> for FromUtf16Error<E>
Source§fn from(e: FromUtf16Error) -> Self
fn from(e: FromUtf16Error) -> Self
Converts to this type from the input type.
Source§impl<E> From<LengthExceeded<E>> for FromUtf16Error<E>
impl<E> From<LengthExceeded<E>> for FromUtf16Error<E>
Source§fn from(e: LengthExceeded<E>) -> Self
fn from(e: LengthExceeded<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Forget for FromUtf16Error<E>
impl<E> Freeze for FromUtf16Error<E>where
LengthExceeded<E>: Freeze,
impl<E> Move for FromUtf16Error<E>
impl<E> RefUnwindSafe for FromUtf16Error<E>where
LengthExceeded<E>: RefUnwindSafe,
impl<E> Send for FromUtf16Error<E>where
LengthExceeded<E>: Send,
impl<E> Sync for FromUtf16Error<E>where
LengthExceeded<E>: Sync,
impl<E> Unpin for FromUtf16Error<E>where
LengthExceeded<E>: Unpin,
impl<E> UnsafeUnpin for FromUtf16Error<E>where
LengthExceeded<E>: UnsafeUnpin,
impl<E> UnwindSafe for FromUtf16Error<E>where
LengthExceeded<E>: UnwindSafe,
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