[][src]Enum iconwriter::IconError

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

The error type for operations of the Icon trait.

Variants

AlreadyIncluded(K)

The Icon instance already includes an entry associated with this key.

Resample(ResampleError)

A resampling error.

Implementations

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

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

Converts self to a IconError<T> using f.

Trait Implementations

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

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

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

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

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

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

Auto Trait Implementations

impl<K> !RefUnwindSafe for IconError<K>[src]

impl<K> Send for IconError<K>[src]

impl<K> Sync for IconError<K>[src]

impl<K> Unpin for IconError<K> where
    K: Unpin
[src]

impl<K> !UnwindSafe for IconError<K>[src]

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> Pointable for T

type Init = T

The type for initializers.

impl<T> SetParameter for T

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.