mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 03:55:28 +00:00
16 lines
305 B
Rust
16 lines
305 B
Rust
use std::path::PathBuf;
|
|
|
|
use crate::{
|
|
cli::Flags,
|
|
file::File
|
|
};
|
|
|
|
pub enum DecompressionResult {
|
|
FilesUnpacked(Vec<PathBuf>),
|
|
FileInMemory(Vec<u8>),
|
|
}
|
|
|
|
pub trait Decompressor {
|
|
fn decompress(&self, from: File, into: &Option<File>, flags: Flags) -> crate::Result<DecompressionResult>;
|
|
}
|