Struct std::string::FromUtf16Error
1.0.0 · source · pub struct FromUtf16Error(/* private fields */);
Expand description
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
Trait Implementations§
1.0.0 · source§impl Debug for FromUtf16Error
impl Debug for FromUtf16Error
1.0.0 · source§impl Display for FromUtf16Error
impl Display for FromUtf16Error
1.0.0 · source§impl Error for FromUtf16Error
impl Error for FromUtf16Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
Auto Trait Implementations§
impl Freeze for FromUtf16Error
impl RefUnwindSafe for FromUtf16Error
impl Send for FromUtf16Error
impl Sync for FromUtf16Error
impl Unpin for FromUtf16Error
impl UnwindSafe for FromUtf16Error
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