pub enum Ucs2Error {
OddLength,
UnpairedSurrogate(usize),
}Variants§
OddLength
Odd number of octets.
UnpairedSurrogate(usize)
Unpaired surrogate at this code-unit index.
Trait Implementations§
impl Copy for Ucs2Error
impl Eq for Ucs2Error
Source§impl Error for Ucs2Error
impl Error for Ucs2Error
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()
impl StructuralPartialEq for Ucs2Error
Auto Trait Implementations§
impl Forget for Ucs2Error
impl Freeze for Ucs2Error
impl RefUnwindSafe for Ucs2Error
impl Send for Ucs2Error
impl Sync for Ucs2Error
impl Unpin for Ucs2Error
impl UnsafeUnpin for Ucs2Error
impl UnwindSafe for Ucs2Error
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