[][src]Struct os_str_bytes::EncodingError

pub struct EncodingError(_);

The error that occurs when a byte sequence is not representable in the platform encoding.

Result::unwrap should almost always be called on results containing this error. It should be known whether or not byte sequences are properly encoded for the platform, since the module-level documentation discourages using encoded bytes in interchange. Results are returned primarily to make panicking behavior explicit.

On Unix, this error is never returned, but OsStrExt or OsStringExt should be used instead if that needs to be guaranteed.

Trait Implementations

impl Debug for EncodingError[src]

impl Display for EncodingError[src]

impl Eq for EncodingError[src]

impl Error for EncodingError[src]

impl PartialEq<EncodingError> for EncodingError[src]

impl StructuralEq for EncodingError[src]

impl StructuralPartialEq for EncodingError[src]

Auto Trait Implementations

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> 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.