pub enum Ucs2ParseError {
NotMultiple2,
MissingNullTerm,
}Expand description
Errors which may occur while parsing UCS-2
Variants§
NotMultiple2
buffer’s length was not a multiple of 2
MissingNullTerm
buffer did not contain a null terminator
Trait Implementations§
Source§impl Debug for Ucs2ParseError
impl Debug for Ucs2ParseError
Source§impl Display for Ucs2ParseError
impl Display for Ucs2ParseError
Source§impl Error for Ucs2ParseError
impl Error for Ucs2ParseError
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()
Auto Trait Implementations§
impl Freeze for Ucs2ParseError
impl RefUnwindSafe for Ucs2ParseError
impl Send for Ucs2ParseError
impl Sync for Ucs2ParseError
impl Unpin for Ucs2ParseError
impl UnsafeUnpin for Ucs2ParseError
impl UnwindSafe for Ucs2ParseError
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