pub enum ImageFileFormat {
Png,
Jpeg,
Pnm,
Tiff,
OpenExr,
}Expand description
File formats recognized by the stable SpatialRust image-IO boundary.
Variants§
Png
Portable Network Graphics.
Jpeg
JPEG/JFIF image.
Pnm
Portable anymap family (PBM/PGM/PPM/PAM).
Tiff
Tagged Image File Format.
OpenExr
OpenEXR high-dynamic-range image.
Implementations§
Source§impl ImageFileFormat
impl ImageFileFormat
Sourcepub const fn is_enabled(self) -> bool
pub const fn is_enabled(self) -> bool
Returns whether this codec is compiled into the current crate.
Trait Implementations§
Source§impl Clone for ImageFileFormat
impl Clone for ImageFileFormat
Source§fn clone(&self) -> ImageFileFormat
fn clone(&self) -> ImageFileFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ImageFileFormat
impl Debug for ImageFileFormat
Source§impl Display for ImageFileFormat
impl Display for ImageFileFormat
Source§impl Hash for ImageFileFormat
impl Hash for ImageFileFormat
Source§impl PartialEq for ImageFileFormat
impl PartialEq for ImageFileFormat
Source§fn eq(&self, other: &ImageFileFormat) -> bool
fn eq(&self, other: &ImageFileFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ImageFileFormat
impl Eq for ImageFileFormat
impl StructuralPartialEq for ImageFileFormat
Auto Trait Implementations§
impl Freeze for ImageFileFormat
impl RefUnwindSafe for ImageFileFormat
impl Send for ImageFileFormat
impl Sync for ImageFileFormat
impl Unpin for ImageFileFormat
impl UnsafeUnpin for ImageFileFormat
impl UnwindSafe for ImageFileFormat
Blanket Implementations§
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