Enum image::error::ImageFormatHint
source · [−]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.
Unknown
The format is not known or could not be determined.
Trait Implementations
sourceimpl Clone for ImageFormatHint
impl Clone for ImageFormatHint
sourcefn clone(&self) -> ImageFormatHint
fn clone(&self) -> ImageFormatHint
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ImageFormatHint
impl Debug for ImageFormatHint
sourceimpl Display for ImageFormatHint
impl Display for ImageFormatHint
sourceimpl From<&Path> for ImageFormatHint
impl From<&Path> for ImageFormatHint
sourceimpl From<ImageFormat> for ImageFormatHint
impl From<ImageFormat> for ImageFormatHint
sourcefn from(format: ImageFormat) -> Self
fn from(format: ImageFormat) -> Self
Converts to this type from the input type.
sourceimpl From<ImageFormatHint> for UnsupportedError
impl From<ImageFormatHint> for UnsupportedError
sourcefn from(hint: ImageFormatHint) -> Self
fn from(hint: ImageFormatHint) -> Self
Converts to this type from the input type.
sourceimpl Hash for ImageFormatHint
impl Hash for ImageFormatHint
sourcefn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [
Hasher
]. Read more1.3.0fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Feeds a slice of this type into the given [
Hasher
]. Read moresourceimpl PartialEq<ImageFormatHint> for ImageFormatHint
impl PartialEq<ImageFormatHint> for ImageFormatHint
sourcefn eq(&self, other: &ImageFormatHint) -> bool
fn eq(&self, other: &ImageFormatHint) -> bool
impl StructuralPartialEq for ImageFormatHint
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
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more