Enum encode_unicode::error::InvalidUtf8Array [−][src]
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
impl Clone for InvalidUtf8Array
[src]
fn clone(&self) -> InvalidUtf8Array
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for InvalidUtf8Array
[src]
impl Debug for InvalidUtf8Array
[src]
impl Display for InvalidUtf8Array
[src]
impl Eq for InvalidUtf8Array
[src]
impl Error for InvalidUtf8Array
[src]
fn description(&self) -> &'static str
[src]
fn cause(&self) -> Option<&dyn Error>
[src]
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
Always returns Some
.
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
impl From<InvalidCodepoint> for InvalidUtf8Array
[src]
fn from(error: InvalidCodepoint) -> InvalidUtf8Array
[src]
impl From<InvalidUtf8> for InvalidUtf8Array
[src]
fn from(error: InvalidUtf8) -> InvalidUtf8Array
[src]
impl PartialEq<InvalidUtf8Array> for InvalidUtf8Array
[src]
fn eq(&self, other: &InvalidUtf8Array) -> bool
[src]
fn ne(&self, other: &InvalidUtf8Array) -> bool
[src]
impl StructuralEq for InvalidUtf8Array
[src]
impl StructuralPartialEq for InvalidUtf8Array
[src]
Auto Trait Implementations
impl RefUnwindSafe for InvalidUtf8Array
impl Send for InvalidUtf8Array
impl Sync for InvalidUtf8Array
impl Unpin for InvalidUtf8Array
impl UnwindSafe for InvalidUtf8Array
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,