We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91bba6a commit 634f3eeCopy full SHA for 634f3ee
src/compression.rs
@@ -22,6 +22,21 @@ pub enum CompressionType {
22
Lz4,
23
}
24
25
+impl std::fmt::Display for CompressionType {
26
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
27
+ write!(
28
+ f,
29
+ "{}",
30
+ match self {
31
+ Self::None => "none",
32
+
33
+ #[cfg(feature = "lz4")]
34
+ Self::Lz4 => "lz4",
35
+ }
36
+ )
37
38
+}
39
40
impl Encode for CompressionType {
41
fn encode_into<W: Write>(&self, writer: &mut W) -> Result<(), crate::Error> {
42
match self {
0 commit comments