pub enum ByteErrorKind {
Truncated,
LengthOverflow,
BudgetExceeded,
OverlongModifiedUtf8,
IllegalZero,
InvalidModifiedUtf8,
MalformedSurrogate,
}Expand description
A precise byte-lane failure category.
Variants§
Truncated
The input ended before the requested value was complete.
LengthOverflow
Offset or length arithmetic overflowed.
BudgetExceeded
A declared or produced value exceeded its allocation budget.
OverlongModifiedUtf8
Modified UTF-8 used a longer representation than necessary.
IllegalZero
Modified UTF-8 contained a literal zero byte.
InvalidModifiedUtf8
Modified UTF-8 contained an invalid byte sequence.
MalformedSurrogate
Modified UTF-8 contained an unpaired UTF-16 surrogate.
Trait Implementations§
Source§impl Clone for ByteErrorKind
impl Clone for ByteErrorKind
Source§fn clone(&self) -> ByteErrorKind
fn clone(&self) -> ByteErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ByteErrorKind
Source§impl Debug for ByteErrorKind
impl Debug for ByteErrorKind
impl Eq for ByteErrorKind
Source§impl PartialEq for ByteErrorKind
impl PartialEq for ByteErrorKind
impl StructuralPartialEq for ByteErrorKind
Auto Trait Implementations§
impl Freeze for ByteErrorKind
impl RefUnwindSafe for ByteErrorKind
impl Send for ByteErrorKind
impl Sync for ByteErrorKind
impl Unpin for ByteErrorKind
impl UnsafeUnpin for ByteErrorKind
impl UnwindSafe for ByteErrorKind
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