pub trait CompressionFormatLevels: CompressionFormat {
const COMPRESSION_LEVEL_NONE: u32;
const COMPRESSION_LEVEL_FAST: u32;
const COMPRESSION_LEVEL_BEST: u32;
const COMPRESSION_LEVEL_DEFAULT: u32;
}
Expand description
Defines compression level presets for a CompressionFormat
.
Required Associated Constants§
sourceconst COMPRESSION_LEVEL_NONE: u32
const COMPRESSION_LEVEL_NONE: u32
The level for no compression.
sourceconst COMPRESSION_LEVEL_FAST: u32
const COMPRESSION_LEVEL_FAST: u32
The level for ‘fast’ compression.
sourceconst COMPRESSION_LEVEL_BEST: u32
const COMPRESSION_LEVEL_BEST: u32
The level for ‘best’ compression.
sourceconst COMPRESSION_LEVEL_DEFAULT: u32
const COMPRESSION_LEVEL_DEFAULT: u32
The level for default compression.
Object Safety§
This trait is not object safe.
Implementors§
source§impl CompressionFormatLevels for BZip2
Available on crate feature bzip
only.
impl CompressionFormatLevels for BZip2
Available on crate feature
bzip
only.const COMPRESSION_LEVEL_NONE: u32 = 0u32
const COMPRESSION_LEVEL_FAST: u32 = 1u32
const COMPRESSION_LEVEL_BEST: u32 = 9u32
const COMPRESSION_LEVEL_DEFAULT: u32 = 6u32
source§impl CompressionFormatLevels for Deflate
Available on crate feature flate
only.
impl CompressionFormatLevels for Deflate
Available on crate feature
flate
only.const COMPRESSION_LEVEL_NONE: u32 = 0u32
const COMPRESSION_LEVEL_FAST: u32 = 1u32
const COMPRESSION_LEVEL_BEST: u32 = 9u32
const COMPRESSION_LEVEL_DEFAULT: u32 = 6u32
source§impl CompressionFormatLevels for Gz
Available on crate feature flate
only.
impl CompressionFormatLevels for Gz
Available on crate feature
flate
only.const COMPRESSION_LEVEL_NONE: u32 = 0u32
const COMPRESSION_LEVEL_FAST: u32 = 1u32
const COMPRESSION_LEVEL_BEST: u32 = 9u32
const COMPRESSION_LEVEL_DEFAULT: u32 = 6u32
source§impl CompressionFormatLevels for ZLib
Available on crate feature flate
only.
impl CompressionFormatLevels for ZLib
Available on crate feature
flate
only.const COMPRESSION_LEVEL_NONE: u32 = 0u32
const COMPRESSION_LEVEL_FAST: u32 = 1u32
const COMPRESSION_LEVEL_BEST: u32 = 9u32
const COMPRESSION_LEVEL_DEFAULT: u32 = 6u32
source§impl CompressionFormatLevels for Xz
Available on crate feature xz
only.
impl CompressionFormatLevels for Xz
Available on crate feature
xz
only.