pub enum InvalidUtf8Array {
Utf8(InvalidUtf8),
Codepoint(InvalidCodepoint),
}
Expand description
Reasons why a byte array is not valid UTF-8, in sinking precedence.
Variants§
Utf8(InvalidUtf8)
Not a valid UTF-8 sequence.
Codepoint(InvalidCodepoint)
Not a valid unicode codepoint.
Trait Implementations§
Source§impl Clone for InvalidUtf8Array
impl Clone for InvalidUtf8Array
Source§fn clone(&self) -> InvalidUtf8Array
fn clone(&self) -> InvalidUtf8Array
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 InvalidUtf8Array
impl Debug for InvalidUtf8Array
Source§impl Display for InvalidUtf8Array
impl Display for InvalidUtf8Array
Source§impl Error for InvalidUtf8Array
impl Error for InvalidUtf8Array
Source§fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
fn cause(&self) -> Option<&dyn Error>
Always returns Some
.
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<InvalidCodepoint> for InvalidUtf8Array
impl From<InvalidCodepoint> for InvalidUtf8Array
Source§fn from(error: InvalidCodepoint) -> InvalidUtf8Array
fn from(error: InvalidCodepoint) -> InvalidUtf8Array
Converts to this type from the input type.
Source§impl From<InvalidUtf8> for InvalidUtf8Array
impl From<InvalidUtf8> for InvalidUtf8Array
Source§fn from(error: InvalidUtf8) -> InvalidUtf8Array
fn from(error: InvalidUtf8) -> InvalidUtf8Array
Converts to this type from the input type.
Source§impl PartialEq for InvalidUtf8Array
impl PartialEq for InvalidUtf8Array
impl Copy for InvalidUtf8Array
impl Eq for InvalidUtf8Array
impl StructuralPartialEq for InvalidUtf8Array
Auto Trait Implementations§
impl Freeze for InvalidUtf8Array
impl RefUnwindSafe for InvalidUtf8Array
impl Send for InvalidUtf8Array
impl Sync for InvalidUtf8Array
impl Unpin for InvalidUtf8Array
impl UnwindSafe for InvalidUtf8Array
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
)