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

impl StructuralPartialEq for ImageFormatHint

Auto Trait Implementations

impl Freeze for ImageFormatHint

impl RefUnwindSafe for ImageFormatHint

impl Send for ImageFormatHint

impl Sync for ImageFormatHint

impl Unpin for ImageFormatHint

impl UnsafeUnpin for ImageFormatHint

impl UnwindSafe for ImageFormatHint

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for ImageFormatHint where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for ImageFormatHint where ST: ?Sized, DT: ?Sized,

impl<T> Any for ImageFormatHint where T: 'static + ?Sized,

impl<T> Borrow<T> for ImageFormatHint where T: ?Sized,

impl<T> BorrowMut<T> for ImageFormatHint where T: ?Sized,

impl<T> CloneToUninit for ImageFormatHint where T: Clone,

impl<T> From<T> for ImageFormatHint

impl<T> IntoEither for ImageFormatHint

impl<T> Pointable for ImageFormatHint

impl<T> Read<Exclusive, BecauseExclusive> for ImageFormatHint where T: ?Sized,

impl<T> ToOwned for ImageFormatHint where T: Clone,

impl<T> ToString for ImageFormatHint where T: Display + ?Sized,

impl<T, U> Into<U> for ImageFormatHint where U: From<T>,

impl<T, U> TryFrom<U> for ImageFormatHint where U: Into<T>,

impl<T, U> TryInto<U> for ImageFormatHint where U: TryFrom<T>,