[][src]Enum favy::EncodingError

pub enum EncodingError<K> where
    K: AsSize + Send + Sync
{ AlreadyIncluded(K), Resample(ResampleError), }

The error type for operations of the Encode trait.

Variants

AlreadyIncluded(K)

The icon already includes an entry associated with this key.

Resample(ResampleError)

A resampling error.

Methods

impl<K> EncodingError<K> where
    K: AsSize + Send + Sync
[src]

pub fn map<T, F>(self, f: F) -> EncodingError<T> where
    F: FnOnce(K) -> T,
    T: AsSize + Send + Sync
[src]

Converts self to a EncodingError<T> using f.

Trait Implementations

impl<K> From<Error> for EncodingError<K> where
    K: AsSize + Send + Sync
[src]

impl<K> From<ResampleError> for EncodingError<K> where
    K: AsSize + Send + Sync
[src]

impl<K> Into<Error> for EncodingError<K> where
    K: AsSize + Send + Sync
[src]

impl<K> Debug for EncodingError<K> where
    K: AsSize + Send + Sync + Debug
[src]

impl<K> Display for EncodingError<K> where
    K: AsSize + Send + Sync
[src]

impl<K> Error for EncodingError<K> where
    K: AsSize + Send + Sync + Debug
[src]

Auto Trait Implementations

impl<K> Send for EncodingError<K>

impl<K> Sync for EncodingError<K>

impl<K> Unpin for EncodingError<K> where
    K: Unpin

impl<K> !UnwindSafe for EncodingError<K>

impl<K> !RefUnwindSafe for EncodingError<K>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T