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