Struct encode_unicode::error::Utf16FirstUnitError
source · [−]pub struct Utf16FirstUnitError;
Expand description
Error returned by U16UtfExt::utf16_needs_extra_unit()
when called on an u16
that’s a trailing surrogate.
Trait Implementations
sourceimpl Clone for Utf16FirstUnitError
impl Clone for Utf16FirstUnitError
sourcefn clone(&self) -> Utf16FirstUnitError
fn clone(&self) -> Utf16FirstUnitError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Utf16FirstUnitError
impl Debug for Utf16FirstUnitError
sourceimpl Display for Utf16FirstUnitError
impl Display for Utf16FirstUnitError
sourceimpl Error for Utf16FirstUnitError
impl Error for Utf16FirstUnitError
sourcefn description(&self) -> &'static str
fn description(&self) -> &'static str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
impl Copy for Utf16FirstUnitError
impl Eq for Utf16FirstUnitError
impl StructuralEq for Utf16FirstUnitError
impl StructuralPartialEq for Utf16FirstUnitError
Auto Trait Implementations
impl RefUnwindSafe for Utf16FirstUnitError
impl Send for Utf16FirstUnitError
impl Sync for Utf16FirstUnitError
impl Unpin for Utf16FirstUnitError
impl UnwindSafe for Utf16FirstUnitError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more