[][src]Struct qt_gui::q_image_writer::ImageWriterError

#[repr(transparent)]
pub struct ImageWriterError(_);

This enum describes errors that can occur when writing images with QImageWriter.

C++ enum: QImageWriter::ImageWriterError.

C++ documentation:

This enum describes errors that can occur when writing images with QImageWriter.

Methods

impl ImageWriterError[src]

pub fn to_int(&self) -> c_int[src]

impl ImageWriterError[src]

pub const UnknownError: ImageWriterError[src]

An unknown error occurred. If you get this value after calling write(), it is most likely caused by a bug in QImageWriter. (C++ enum variant: UnknownError = 0)

pub const DeviceError: ImageWriterError[src]

QImageWriter encountered a device error when writing the image data. Consult your device for more details on what went wrong. (C++ enum variant: DeviceError = 1)

pub const UnsupportedFormatError: ImageWriterError[src]

Qt does not support the requested image format. (C++ enum variant: UnsupportedFormatError = 2)

pub const InvalidImageError: ImageWriterError[src]

An attempt was made to write an invalid QImage. An example of an invalid image would be a null QImage. (C++ enum variant: InvalidImageError = 3)

Trait Implementations

impl Clone for ImageWriterError[src]

impl Copy for ImageWriterError[src]

impl Debug for ImageWriterError[src]

impl Eq for ImageWriterError[src]

impl From<ImageWriterError> for c_int[src]

impl From<i32> for ImageWriterError[src]

impl PartialEq<ImageWriterError> for ImageWriterError[src]

impl StructuralEq for ImageWriterError[src]

impl StructuralPartialEq for ImageWriterError[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, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

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

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.