Enum ImageFormatHint
enum ImageFormatHint
A best effort representation for image formats.
Variants
-
Exact(crate::image::ImageFormat) The format is known exactly.
-
Name(String) The format can be identified by a name.
-
PathExtension(std::path::PathBuf) A common path extension for the format is known.
-
Unknown The format is not known or could not be determined.
Implementations
impl Clone for ImageFormatHint
fn clone(self: &Self) -> ImageFormatHint
impl Debug for ImageFormatHint
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for ImageFormatHint
fn fmt(self: &Self, fmt: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error>
impl Freeze for ImageFormatHint
impl From for ImageFormatHint
fn from(path: &std::path::Path) -> Self
impl From for ImageFormatHint
fn from(format: ImageFormat) -> Self
impl Hash for ImageFormatHint
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl PartialEq for ImageFormatHint
fn eq(self: &Self, other: &ImageFormatHint) -> bool
impl RefUnwindSafe for ImageFormatHint
impl Send for ImageFormatHint
impl StructuralPartialEq for ImageFormatHint
impl Sync for ImageFormatHint
impl Unpin for ImageFormatHint
impl UnwindSafe for ImageFormatHint
impl<T> Any for ImageFormatHint
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for ImageFormatHint
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for ImageFormatHint
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for ImageFormatHint
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for ImageFormatHint
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for ImageFormatHint
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> ToOwned for ImageFormatHint
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for ImageFormatHint
fn to_string(self: &Self) -> String
impl<T, U> Into for ImageFormatHint
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for ImageFormatHint
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for ImageFormatHint
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>