pub enum InvalidUtf8FirstByte {
TooLongSeqence,
ContinuationByte,
}
Expand description
Reasons why a byte is not the start of a UTF-8 codepoint.
Variants§
TooLongSeqence
Sequences cannot be longer than 4 bytes. Is given for values >= 240.
ContinuationByte
This byte belongs to a previous sequence. Is given for values between 128 and 192 (exclusive).
Trait Implementations§
Source§impl Clone for InvalidUtf8FirstByte
impl Clone for InvalidUtf8FirstByte
Source§fn clone(&self) -> InvalidUtf8FirstByte
fn clone(&self) -> InvalidUtf8FirstByte
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 InvalidUtf8FirstByte
impl Debug for InvalidUtf8FirstByte
Source§impl Display for InvalidUtf8FirstByte
impl Display for InvalidUtf8FirstByte
Source§impl Error for InvalidUtf8FirstByte
impl Error for InvalidUtf8FirstByte
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 From<InvalidUtf8FirstByte> for InvalidUtf8
impl From<InvalidUtf8FirstByte> for InvalidUtf8
Source§fn from(error: InvalidUtf8FirstByte) -> InvalidUtf8
fn from(error: InvalidUtf8FirstByte) -> InvalidUtf8
Converts to this type from the input type.
Source§impl PartialEq for InvalidUtf8FirstByte
impl PartialEq for InvalidUtf8FirstByte
impl Copy for InvalidUtf8FirstByte
impl Eq for InvalidUtf8FirstByte
impl StructuralPartialEq for InvalidUtf8FirstByte
Auto Trait Implementations§
impl Freeze for InvalidUtf8FirstByte
impl RefUnwindSafe for InvalidUtf8FirstByte
impl Send for InvalidUtf8FirstByte
impl Sync for InvalidUtf8FirstByte
impl Unpin for InvalidUtf8FirstByte
impl UnwindSafe for InvalidUtf8FirstByte
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)