Struct spinoso_string::InvalidEncodingError[][src]

pub struct InvalidEncodingError { /* fields omitted */ }

Error returned when failing to deserialize an Encoding.

This error is returned from Encoding::try_from_flag. See its documentation for more detail.

When the std feature of spinoso-string is enabled, this struct implements std::error::Error.

Examples

assert_eq!(Encoding::try_from_flag(255), Err(InvalidEncodingError::new()));
assert_eq!(Encoding::try_from(255), Err(InvalidEncodingError::new()));

Implementations

impl InvalidEncodingError[src]

#[must_use]pub const fn new() -> Self[src]

Constuct a new InvalidEncodingError.

Examples

const ERR: InvalidEncodingError = InvalidEncodingError::new();

Trait Implementations

impl Clone for InvalidEncodingError[src]

impl Copy for InvalidEncodingError[src]

impl Debug for InvalidEncodingError[src]

impl Default for InvalidEncodingError[src]

impl Display for InvalidEncodingError[src]

impl Eq for InvalidEncodingError[src]

impl Error for InvalidEncodingError[src]

impl Hash for InvalidEncodingError[src]

impl Ord for InvalidEncodingError[src]

impl PartialEq<InvalidEncodingError> for InvalidEncodingError[src]

impl PartialOrd<InvalidEncodingError> for InvalidEncodingError[src]

impl StructuralEq for InvalidEncodingError[src]

impl StructuralPartialEq for InvalidEncodingError[src]

Auto Trait Implementations

impl RefUnwindSafe for InvalidEncodingError

impl Send for InvalidEncodingError

impl Sync for InvalidEncodingError

impl Unpin for InvalidEncodingError

impl UnwindSafe for InvalidEncodingError

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.