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§
Source§impl Clone for Utf16FirstUnitError
impl Clone for Utf16FirstUnitError
Source§fn clone(&self) -> Utf16FirstUnitError
fn clone(&self) -> Utf16FirstUnitError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Utf16FirstUnitError
impl Debug for Utf16FirstUnitError
Source§impl Display for Utf16FirstUnitError
impl Display for Utf16FirstUnitError
Source§impl Error for Utf16FirstUnitError
impl Error for Utf16FirstUnitError
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static 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
Source§impl PartialEq for Utf16FirstUnitError
impl PartialEq for Utf16FirstUnitError
impl Copy for Utf16FirstUnitError
impl Eq for Utf16FirstUnitError
impl StructuralPartialEq for Utf16FirstUnitError
Auto Trait Implementations§
impl Freeze for Utf16FirstUnitError
impl RefUnwindSafe for Utf16FirstUnitError
impl Send for Utf16FirstUnitError
impl Sync for Utf16FirstUnitError
impl Unpin for Utf16FirstUnitError
impl UnwindSafe for Utf16FirstUnitError
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