Enum ImageFormatHint
#[non_exhaustive]
pub enum ImageFormatHint
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.
-
Unknown The format is not known or could not be determined.
Trait Implementations
impl Clone for ImageFormatHint
fn clone(&self) -> Self
impl Debug for ImageFormatHint
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for ImageFormatHint
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>
impl From<&Path> for ImageFormatHint
fn from(path: &Path) -> Self
impl From<ImageFormat> for ImageFormatHint
fn from(format: ImageFormat) -> Self
impl Hash for ImageFormatHint
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for ImageFormatHint
fn eq(&self, other: &Self) -> bool