Compress

Trait Compress 

Source
pub trait Compress {
    type Reader: Read;

    // Required method
    fn to_reader(self) -> Self::Reader;
}

Required Associated Types§

Required Methods§

Source

fn to_reader(self) -> Self::Reader

Implementations on Foreign Types§

Source§

impl Compress for String

Source§

impl<'a> Compress for &'a str

Source§

type Reader = Cursor<&'a str>

Source§

fn to_reader(self) -> Self::Reader

Source§

impl<'a> Compress for &'a Vec<u8>

Source§

type Reader = Cursor<&'a Vec<u8>>

Source§

fn to_reader(self) -> Self::Reader

Implementors§