#[non_exhaustive]pub enum Format {
Raw,
Png,
Jpeg,
Gif,
Tiff,
WebP,
Avif,
}Expand description
A container format.
Format is data, not a type parameter: output(format, options) is the
single encode terminal, which keeps the API surface stable as formats are
added and maps cleanly onto host bindings (ADR-0006). Formats not yet
implemented are still nameable, so an unsupported request is a catchable
PixelsError::Unsupported rather than a compile error in a host binding.
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.
Raw
Uncompressed pixels described entirely by the caller.
Png
Portable Network Graphics.
Jpeg
JPEG.
Gif
Graphics Interchange Format.
Tiff
Tagged Image File Format.
WebP
WebP.
Avif
AV1 Image File Format.
Implementations§
Trait Implementations§
impl Copy for Format
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Freeze for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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