Enum nannou::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§
source§impl Clone for ImageFormatHint
impl Clone for ImageFormatHint
source§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 moresource§impl Debug for ImageFormatHint
impl Debug for ImageFormatHint
source§impl Display for ImageFormatHint
impl Display for ImageFormatHint
source§impl From<&Path> for ImageFormatHint
impl From<&Path> for ImageFormatHint
source§fn from(path: &Path) -> ImageFormatHint
fn from(path: &Path) -> ImageFormatHint
Converts to this type from the input type.
source§impl From<ImageFormat> for ImageFormatHint
impl From<ImageFormat> for ImageFormatHint
source§fn from(format: ImageFormat) -> ImageFormatHint
fn from(format: ImageFormat) -> ImageFormatHint
Converts to this type from the input type.
source§impl From<ImageFormatHint> for UnsupportedError
impl From<ImageFormatHint> for UnsupportedError
source§fn from(hint: ImageFormatHint) -> UnsupportedError
fn from(hint: ImageFormatHint) -> UnsupportedError
Converts to this type from the input type.
source§impl Hash for ImageFormatHint
impl Hash for ImageFormatHint
source§impl PartialEq for ImageFormatHint
impl PartialEq for ImageFormatHint
source§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<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined range,
otherwise an
OutOfBounds
error is returned which contains the unclamped color. Read more