[−][src]Struct qt_gui::q_image_reader::ImageReaderError
This enum describes the different types of errors that can occur when reading images with QImageReader.
C++ enum: QImageReader::ImageReaderError
.
This enum describes the different types of errors that can occur when reading images with QImageReader.
Methods
impl ImageReaderError
[src]
impl ImageReaderError
[src]
pub const UnknownError: ImageReaderError
[src]
An unknown error occurred. If you get this value after calling read(), it is most likely caused by a bug in QImageReader. (C++ enum variant: UnknownError = 0
)
pub const FileNotFoundError: ImageReaderError
[src]
QImageReader was used with a file name, but not file was found with that name. This can also happen if the file name contained no extension, and the file with the correct extension is not supported by Qt. (C++ enum variant: FileNotFoundError = 1
)
pub const DeviceError: ImageReaderError
[src]
QImageReader encountered a device error when reading the image. You can consult your particular device for more details on what went wrong. (C++ enum variant: DeviceError = 2
)
pub const UnsupportedFormatError: ImageReaderError
[src]
Qt does not support the requested image format. (C++ enum variant: UnsupportedFormatError = 3
)
pub const InvalidDataError: ImageReaderError
[src]
The image data was invalid, and QImageReader was unable to read an image from it. The can happen if the image file is damaged. (C++ enum variant: InvalidDataError = 4
)
Trait Implementations
impl Clone for ImageReaderError
[src]
fn clone(&self) -> ImageReaderError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ImageReaderError
[src]
impl Debug for ImageReaderError
[src]
impl Eq for ImageReaderError
[src]
impl From<ImageReaderError> for c_int
[src]
fn from(value: ImageReaderError) -> Self
[src]
impl From<i32> for ImageReaderError
[src]
impl PartialEq<ImageReaderError> for ImageReaderError
[src]
fn eq(&self, other: &ImageReaderError) -> bool
[src]
fn ne(&self, other: &ImageReaderError) -> bool
[src]
impl StructuralEq for ImageReaderError
[src]
impl StructuralPartialEq for ImageReaderError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ImageReaderError
impl Send for ImageReaderError
impl Sync for ImageReaderError
impl Unpin for ImageReaderError
impl UnwindSafe for ImageReaderError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,