Struct Deflate

pub struct Deflate { /* private fields */ }

The Deflate algorithm used to compress image data in TIFF files.

Implementations

impl Deflate

fn with_level(level: DeflateLevel) -> Self

Create a new deflate compressor with a specific level of compression.

Trait Implementations

impl Clone for Deflate

fn clone(&self) -> Deflate

impl Compression for Deflate

const COMPRESSION_METHOD: CompressionMethod = CompressionMethod::Deflate;
fn get_algorithm(&self) -> Compressor

impl CompressionAlgorithm for Deflate

fn write_to<W: Write>(&mut self, writer: &mut W, bytes: &[u8]) -> Result<u64, Error>

impl Copy for Deflate

impl Debug for Deflate

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

impl Default for Deflate

fn default() -> Self

Auto Trait Implementations

impl Freeze for Deflate

impl RefUnwindSafe for Deflate

impl Send for Deflate

impl Sync for Deflate

impl Unpin for Deflate

impl UnsafeUnpin for Deflate

impl UnwindSafe for Deflate

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Deflate where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Deflate where ST: ?Sized, DT: ?Sized,

impl<T> Any for Deflate where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Deflate

fn from(t: T) -> T

Returns the argument unchanged.

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

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>