[][src]Trait absperf_minilzo::CompressInto

pub trait CompressInto<T: ?Sized> {
    fn compress_into<'buffer>(
        &self,
        destination: &'buffer mut T
    ) -> Result<&'buffer [u8]>; }

Compression trait. Implemented for [u8], allowing compressing into [u8] and Vec<u8>

Required methods

fn compress_into<'buffer>(
    &self,
    destination: &'buffer mut T
) -> Result<&'buffer [u8]>

LZO1X compresses into destination, returning a subslice of the compressed data

Loading content...

Implementations on Foreign Types

impl CompressInto<[u8]> for [u8][src]

impl CompressInto<Vec<u8>> for [u8][src]

fn compress_into<'buffer>(
    &self,
    destination: &'buffer mut Vec<u8>
) -> Result<&'buffer [u8]>
[src]

Compresses into the indicated vector, automatically resizing it to fit the result. On error, the destination vector's contents likely will be corrupted.

Loading content...

Implementors

Loading content...