[][src]Trait compression::prelude::Encoder

pub trait Encoder where
    CompressionError: From<Self::Error>, 
{ type Error; type In; type Out; fn next<I: Iterator<Item = Self::In>>(
        &mut self,
        iter: &mut I,
        action: Action
    ) -> Option<Result<Self::Out, Self::Error>>; }

Associated Types

type Error

type In

type Out

Loading content...

Required methods

fn next<I: Iterator<Item = Self::In>>(
    &mut self,
    iter: &mut I,
    action: Action
) -> Option<Result<Self::Out, Self::Error>>

Loading content...

Implementors

impl Encoder for BZip2Encoder[src]

type Error = CompressionError

type In = u8

type Out = u8

impl Encoder for GZipEncoder[src]

type Error = CompressionError

type In = u8

type Out = u8

impl Encoder for Inflater[src]

type Error = CompressionError

type In = u8

type Out = u8

impl Encoder for LzhufEncoder[src]

type Error = CompressionError

type In = u8

type Out = u8

impl Encoder for ZlibEncoder[src]

type Error = CompressionError

type In = u8

type Out = u8

impl<F> Encoder for LzssEncoder<F> where
    F: Fn(LzssCode, LzssCode) -> Ordering + Copy
[src]

type Error = CompressionError

type In = u8

type Out = LzssCode

Loading content...