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.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl 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
Performs the conversion.
sourceimpl From<ImageFormatHint> for UnsupportedError
impl From<ImageFormatHint> for UnsupportedError
sourcefn from(hint: ImageFormatHint) -> Self
fn from(hint: ImageFormatHint) -> Self
Performs the conversion.
sourceimpl Hash for ImageFormatHint
impl Hash for ImageFormatHint
sourceimpl PartialEq<ImageFormatHint> for ImageFormatHint
impl PartialEq<ImageFormatHint> for ImageFormatHint
sourcefn eq(&self, other: &ImageFormatHint) -> bool
fn eq(&self, other: &ImageFormatHint) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ImageFormatHint) -> bool
fn ne(&self, other: &ImageFormatHint) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more