Struct FromUtf16Error
pub struct FromUtf16Error { pub(in ::string) kind: FromUtf16ErrorKind }
A possible error value when converting a String from a UTF-16 byte slice.
This type is the error type for the from_utf16 method on String.
Examples
// 𝄞mu<invalid>ic
let v = &;
assert!;
Fields
kind: FromUtf16ErrorKind
Trait Implementations
impl Debug for FromUtf16Error
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for FromUtf16Error
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for FromUtf16Error
Auto Trait Implementations
impl Freeze for FromUtf16Error
impl RefUnwindSafe for FromUtf16Error
impl Send for FromUtf16Error
impl Sync for FromUtf16Error
impl Unpin for FromUtf16Error
impl UnsafeUnpin for FromUtf16Error
impl UnwindSafe for FromUtf16Error
Blanket Implementations
impl<T> Any for FromUtf16Error
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for FromUtf16Error
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for FromUtf16Error
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for FromUtf16Error
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for FromUtf16Error
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for FromUtf16Error
impl<T> ToString for FromUtf16Error
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for FromUtf16Error
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for FromUtf16Error
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for FromUtf16Error
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>