Enum druid::piet::image_crate::error::ImageFormatHint
#[non_exhaustive]
pub enum ImageFormatHint {
Exact(ImageFormat),
Name(String),
PathExtension(PathBuf),
Unknown,
}
Expand description
A best effort representation for image formats.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future 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
impl Clone for ImageFormatHint
§fn clone(&self) -> ImageFormatHint
fn clone(&self) -> ImageFormatHint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ImageFormatHint
impl Debug for ImageFormatHint
§impl Display for ImageFormatHint
impl Display for ImageFormatHint
§impl From<&Path> for ImageFormatHint
impl From<&Path> for ImageFormatHint
§fn from(path: &Path) -> ImageFormatHint
fn from(path: &Path) -> ImageFormatHint
Converts to this type from the input type.
§impl From<ImageFormat> for ImageFormatHint
impl From<ImageFormat> for ImageFormatHint
§fn from(format: ImageFormat) -> ImageFormatHint
fn from(format: ImageFormat) -> ImageFormatHint
Converts to this type from the input type.
§impl From<ImageFormatHint> for UnsupportedError
impl From<ImageFormatHint> for UnsupportedError
§fn from(hint: ImageFormatHint) -> UnsupportedError
fn from(hint: ImageFormatHint) -> UnsupportedError
Converts to this type from the input type.
§impl Hash for ImageFormatHint
impl Hash for ImageFormatHint
§impl PartialEq<ImageFormatHint> for ImageFormatHint
impl PartialEq<ImageFormatHint> for ImageFormatHint
§fn 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 ==
.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§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.