Enum image::error::ImageFormatHint [−][src]
pub enum ImageFormatHint { Exact(ImageFormat), Name(String), PathExtension(PathBuf), Unknown, // some variants omitted }
Expand description
A best effort representation for image formats.
Variants
Exact(ImageFormat)
The format is known exactly.
Name(String)
The format can be identified by a name.
PathExtension(PathBuf)
A common path extension for the format is known.
The format is not known or could not be determined.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ImageFormatHint
impl Send for ImageFormatHint
impl Sync for ImageFormatHint
impl Unpin for ImageFormatHint
impl UnwindSafe for ImageFormatHint
Blanket Implementations
Mutably borrows from an owned value. Read more