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) -> ImageFormatHint
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: &ImageFormatHint) -> 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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ImageFormatHint
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ImageFormatHint
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for ImageFormatHint
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for ImageFormatHint
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for ImageFormatHint
impl<T> Pointable for ImageFormatHint
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for ImageFormatHint
where
T: ?Sized,
impl<T> ToOwned for ImageFormatHint
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T> ToString for ImageFormatHint
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for ImageFormatHint
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ImageFormatHint
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ImageFormatHint
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>