Enum utf8_parser::Utf8ParserError
source · pub enum Utf8ParserError {
InvalidByte(u8),
InvalidChar(u32),
UnexpectedStartByte(u8),
UnexpectedContinuationByte(u8),
}
Expand description
Error type used for the utf8-parser
crate
Variants§
InvalidByte(u8)
Encountered an invalid byte. This is a byte that’s invalid no matter the context.
InvalidChar(u32)
Found a character that’s not valid UTF-8.
UnexpectedStartByte(u8)
Found a start byte in an unexpected place
UnexpectedContinuationByte(u8)
Found a continuation byte in an unexpected place
Trait Implementations§
source§impl Clone for Utf8ParserError
impl Clone for Utf8ParserError
source§fn clone(&self) -> Utf8ParserError
fn clone(&self) -> Utf8ParserError
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 Utf8ParserError
impl Debug for Utf8ParserError
source§impl Display for Utf8ParserError
impl Display for Utf8ParserError
source§impl PartialEq for Utf8ParserError
impl PartialEq for Utf8ParserError
source§fn eq(&self, other: &Utf8ParserError) -> bool
fn eq(&self, other: &Utf8ParserError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Utf8ParserError
impl Eq for Utf8ParserError
impl StructuralEq for Utf8ParserError
impl StructuralPartialEq for Utf8ParserError
Auto Trait Implementations§
impl RefUnwindSafe for Utf8ParserError
impl Send for Utf8ParserError
impl Sync for Utf8ParserError
impl Unpin for Utf8ParserError
impl UnwindSafe for Utf8ParserError
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