Struct image::error::UnsupportedError[][src]

pub struct UnsupportedError { /* fields omitted */ }

The implementation for an operation was not provided.

See the variant Unsupported for more documentation.

Implementations

impl UnsupportedError[src]

pub fn from_format_and_kind(
    format: ImageFormatHint,
    kind: UnsupportedErrorKind
) -> Self
[src]

Create an UnsupportedError for an image with details on the unsupported feature.

If the operation was not connected to a particular image format then the hint may be Unknown.

pub fn kind(&self) -> UnsupportedErrorKind[src]

Returns the corresponding UnsupportedErrorKind of the error.

pub fn format_hint(&self) -> ImageFormatHint[src]

Returns the image format associated with this error.

Trait Implementations

impl Debug for UnsupportedError[src]

impl Display for UnsupportedError[src]

impl Error for UnsupportedError[src]

impl From<ImageFormatHint> for UnsupportedError[src]

Auto Trait Implementations

impl RefUnwindSafe for UnsupportedError

impl Send for UnsupportedError

impl Sync for UnsupportedError

impl Unpin for UnsupportedError

impl UnwindSafe for UnsupportedError

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[src]

type Init = T

The type for initializers.

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.