mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 19:45:29 +00:00
18 lines
334 B
Rust
18 lines
334 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>;
|
|
}
|