pub struct FromUtf16Error;Expand description
An error if the conversion from a sequence of UTF-16 code units to a LeanString fails due
to invalid UTF-16 code unit sequences.
Trait Implementations§
Source§impl Clone for FromUtf16Error
impl Clone for FromUtf16Error
Source§fn clone(&self) -> FromUtf16Error
fn clone(&self) -> FromUtf16Error
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FromUtf16Error
Source§impl Debug for FromUtf16Error
impl Debug for FromUtf16Error
Source§impl Display for FromUtf16Error
impl Display for FromUtf16Error
impl Eq for FromUtf16Error
Source§impl Error for FromUtf16Error
impl Error for FromUtf16Error
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 Hash for FromUtf16Error
impl Hash for FromUtf16Error
Source§impl PartialEq for FromUtf16Error
impl PartialEq for FromUtf16Error
impl StructuralPartialEq 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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToLeanStr for Twhere
T: Display,
impl<T> ToLeanStr for Twhere
T: Display,
Source§fn try_to_lean_str(&self) -> Result<LeanStr, ToLeanStrError>
fn try_to_lean_str(&self) -> Result<LeanStr, ToLeanStrError>
Source§impl<T> ToLeanString for Twhere
T: Display,
impl<T> ToLeanString for Twhere
T: Display,
Source§fn try_to_lean_string(&self) -> Result<LeanString, ToLeanStringError>
fn try_to_lean_string(&self) -> Result<LeanString, ToLeanStringError>
Attempts to convert the value to a
LeanString. Read moreSource§fn to_lean_string(&self) -> LeanString
fn to_lean_string(&self) -> LeanString
Converts the value to a
LeanString. Read more