xz-rs 0.1.0

A pure-Rust implementation of xz-utils
Documentation
1
2
3
4
5
6
7
8
9
use std::io::Write;

pub trait Encode {
    fn encoding(&self) -> Vec<u8>;

    fn insert_encoding<T: Write>(&self, dst: &mut T) -> Result<(), std::io::Error> {
        dst.write_all(&self.encoding())
    }
}