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) -> Self

impl Copy for CompressionType

impl Debug for CompressionType

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for CompressionType

fn default() -> Self

impl Eq for CompressionType

impl PartialEq for CompressionType

fn eq(&self, other: &Self) -> 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,

impl<T> Borrow<T> for CompressionType where T: ?Sized,

impl<T> BorrowMut<T> for CompressionType where T: ?Sized,

impl<T> CloneToUninit for CompressionType where T: Clone,

impl<T> From<T> for CompressionType

impl<T> IntoEither for CompressionType

impl<T> Pointable for CompressionType

impl<T> Read<Exclusive, BecauseExclusive> for CompressionType where T: ?Sized,

impl<T> ToOwned for CompressionType where T: Clone,

impl<T, U> Into<U> for CompressionType where U: From<T>,

impl<T, U> TryFrom<U> for CompressionType where U: Into<T>,

impl<T, U> TryInto<U> for CompressionType where U: TryFrom<T>,