| 19 | } |
| 20 | |
| 21 | pub trait CompressionAlgorithm<T> |
| 22 | where |
| 23 | T: Write, |
| 24 | { |
| 25 | type Compressor: Compress; |
| 26 | |
| 27 | fn compressor(&self, writer: T) -> Result<Self::Compressor, CompressorInitError>; |
| 28 | } |
| 29 | |
| 30 | pub trait DecompressionAlgorithm<T> |
| 31 | where |
nothing calls this directly
no outgoing calls
no test coverage detected