Enum encode_unicode::error::InvalidUtf8Array[][src]

pub enum InvalidUtf8Array {
    Utf8(InvalidUtf8),
    Codepoint(InvalidCodepoint),
}

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]

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 cause(&self) -> Option<&dyn Error>[src]

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Always returns Some.

impl From<InvalidCodepoint> for InvalidUtf8Array[src]

impl From<InvalidUtf8> for InvalidUtf8Array[src]

impl PartialEq<InvalidUtf8Array> for InvalidUtf8Array[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.