#[non_exhaustive]#[repr(u32)]pub enum ImageFormat {
Rgb = 0,
Rgba = 1,
Png = 2,
GrayAlpha = 3,
Gray = 4,
}Available on crate feature
kitty-graphics only.Expand description
Pixel format of a Kitty graphics image.
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.
Trait Implementations§
Source§impl Clone for ImageFormat
impl Clone for ImageFormat
Source§fn clone(&self) -> ImageFormat
fn clone(&self) -> ImageFormat
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 moreimpl Copy for ImageFormat
Source§impl Debug for ImageFormat
impl Debug for ImageFormat
Source§impl Default for ImageFormat
impl Default for ImageFormat
Source§fn default() -> ImageFormat
fn default() -> ImageFormat
Returns the “default value” for a type. Read more
impl Eq for ImageFormat
Source§impl From<ImageFormat> for u32
impl From<ImageFormat> for u32
Source§fn from(v: ImageFormat) -> Self
fn from(v: ImageFormat) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ImageFormat
impl PartialEq for ImageFormat
Source§fn eq(&self, other: &ImageFormat) -> bool
fn eq(&self, other: &ImageFormat) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ImageFormat
Auto Trait Implementations§
impl Freeze for ImageFormat
impl RefUnwindSafe for ImageFormat
impl Send for ImageFormat
impl Sync for ImageFormat
impl Unpin for ImageFormat
impl UnsafeUnpin for ImageFormat
impl UnwindSafe for ImageFormat
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