pub enum TextErrorKind {
Resource(MemoryError),
Utf8(Utf8Error),
}Expand description
Why an existing byte buffer could not become immutable UTF-8 text.
Variants§
Resource(MemoryError)
Work admission refused before UTF-8 validation began.
Utf8(Utf8Error)
Admitted validation found invalid UTF-8, relative to the original bytes.
Trait Implementations§
Source§impl Clone for TextErrorKind
impl Clone for TextErrorKind
impl Copy for TextErrorKind
Source§impl Debug for TextErrorKind
impl Debug for TextErrorKind
impl Eq for TextErrorKind
Source§impl PartialEq for TextErrorKind
impl PartialEq for TextErrorKind
impl StructuralPartialEq for TextErrorKind
Auto Trait Implementations§
impl Freeze for TextErrorKind
impl RefUnwindSafe for TextErrorKind
impl Send for TextErrorKind
impl Sync for TextErrorKind
impl Unpin for TextErrorKind
impl UnsafeUnpin for TextErrorKind
impl UnwindSafe for TextErrorKind
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