Enum CompressionType
#[non_exhaustive]
pub enum CompressionType
DEFLATE compression level of a PNG encoder. The default setting is Fast.
Variants
-
Default Default compression level
-
Fast Fast, minimal compression
-
Best High compression level
-
Uncompressed No compression whatsoever
-
Level(u8) Detailed compression level between 1 and 9
Trait Implementations
impl Clone for CompressionType
fn clone(&self) -> CompressionType
impl Copy for CompressionType
impl Debug for CompressionType
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for CompressionType
fn default() -> CompressionType
impl Eq for CompressionType
impl PartialEq for CompressionType
fn eq(&self, other: &CompressionType) -> bool
impl StructuralPartialEq for CompressionType
Auto Trait Implementations
impl Freeze for CompressionType
impl RefUnwindSafe for CompressionType
impl Send for CompressionType
impl Sync for CompressionType
impl Unpin for CompressionType
impl UnsafeUnpin for CompressionType
impl UnwindSafe for CompressionType
Blanket Implementations
impl<R, P> ReadPrimitive<R> for CompressionType
where
R: Read + ReadEndian<P>,
P: Default,
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for CompressionType
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for CompressionType
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for CompressionType
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CompressionType
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CompressionType
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for CompressionType
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for CompressionType
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for CompressionType
impl<T> Pointable for CompressionType
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for CompressionType
where
T: ?Sized,
impl<T> ToOwned for CompressionType
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for CompressionType
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CompressionType
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for CompressionType
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>