Struct qt_gui::q_image_writer::ImageWriterError
source · pub struct ImageWriterError(/* private fields */);
Expand description
This enum describes errors that can occur when writing images with QImageWriter.
C++ enum: QImageWriter::ImageWriterError
.
This enum describes errors that can occur when writing images with QImageWriter.
Implementations§
source§impl ImageWriterError
impl ImageWriterError
sourcepub const UnknownError: ImageWriterError = _
pub const UnknownError: ImageWriterError = _
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
)
sourcepub const DeviceError: ImageWriterError = _
pub const DeviceError: ImageWriterError = _
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
)
sourcepub const UnsupportedFormatError: ImageWriterError = _
pub const UnsupportedFormatError: ImageWriterError = _
Qt does not support the requested image format. (C++ enum variant: UnsupportedFormatError = 2
)
sourcepub const InvalidImageError: ImageWriterError = _
pub const InvalidImageError: ImageWriterError = _
Trait Implementations§
source§impl Clone for ImageWriterError
impl Clone for ImageWriterError
source§fn clone(&self) -> ImageWriterError
fn clone(&self) -> ImageWriterError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageWriterError
impl Debug for ImageWriterError
source§impl From<ImageWriterError> for c_int
impl From<ImageWriterError> for c_int
source§fn from(value: ImageWriterError) -> Self
fn from(value: ImageWriterError) -> Self
Converts to this type from the input type.
source§impl From<i32> for ImageWriterError
impl From<i32> for ImageWriterError
source§impl PartialEq for ImageWriterError
impl PartialEq for ImageWriterError
source§fn eq(&self, other: &ImageWriterError) -> bool
fn eq(&self, other: &ImageWriterError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ImageWriterError
impl Eq for ImageWriterError
impl StructuralEq for ImageWriterError
impl StructuralPartialEq for ImageWriterError
Auto Trait Implementations§
impl RefUnwindSafe for ImageWriterError
impl Send for ImageWriterError
impl Sync for ImageWriterError
impl Unpin for ImageWriterError
impl UnwindSafe for ImageWriterError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more