#[non_exhaustive]pub enum ImageOutputFormat {
Png,
Jpeg(u8),
OpenExr,
Unsupported(String),
}Expand description
An enumeration of supported image formats for encoding.
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.
Png
An Image in PNG Format
Jpeg(u8)
An Image in JPEG Format with specified quality, up to 100
OpenExr
An Image in OpenEXR Format
Unsupported(String)
A value for signalling an error: An unsupported format was requested
Trait Implementations§
Source§impl Clone for ImageOutputFormat
impl Clone for ImageOutputFormat
Source§fn clone(&self) -> ImageOutputFormat
fn clone(&self) -> ImageOutputFormat
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 ImageOutputFormat
impl Debug for ImageOutputFormat
impl Eq for ImageOutputFormat
Source§impl From<ImageFormat> for ImageOutputFormat
impl From<ImageFormat> for ImageOutputFormat
Source§fn from(fmt: ImageFormat) -> ImageOutputFormat
fn from(fmt: ImageFormat) -> ImageOutputFormat
Converts to this type from the input type.
Source§impl PartialEq for ImageOutputFormat
impl PartialEq for ImageOutputFormat
Source§fn eq(&self, other: &ImageOutputFormat) -> bool
fn eq(&self, other: &ImageOutputFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageOutputFormat
Auto Trait Implementations§
impl Freeze for ImageOutputFormat
impl RefUnwindSafe for ImageOutputFormat
impl Send for ImageOutputFormat
impl Sync for ImageOutputFormat
impl Unpin for ImageOutputFormat
impl UnsafeUnpin for ImageOutputFormat
impl UnwindSafe for ImageOutputFormat
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> CloneAny for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Component for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more