mirror of
https://github.com/ouch-org/ouch.git
synced 2025-07-23 18:10:22 +00:00
19 lines
325 B
Rust
19 lines
325 B
Rust
use std::path::PathBuf;
|
|
|
|
use crate::file::File;
|
|
|
|
// pub enum CompressionResult {
|
|
// ZipArchive(Vec<u8>),
|
|
// TarArchive(Vec<u8>),
|
|
// FileInMemory(Vec<u8>)
|
|
// }
|
|
|
|
pub enum Entry {
|
|
Files(Vec<PathBuf>),
|
|
InMemory(File),
|
|
}
|
|
|
|
pub trait Compressor {
|
|
fn compress(&self, from: Entry) -> crate::Result<Vec<u8>>;
|
|
}
|