Trait selium_std::traits::compression::CompressionLevel
source · pub trait CompressionLevel {
// Required methods
fn highest_ratio(self) -> Self;
fn balanced(self) -> Self;
fn fastest(self) -> Self;
fn level(self, level: u32) -> Self;
}Expand description
Interface for applicable compression algorithms and implementations that allow users to specify a compression level.
Required Methods§
sourcefn highest_ratio(self) -> Self
fn highest_ratio(self) -> Self
Sets the compression level to the highest possible level for the algorithm/implementation.
sourcefn balanced(self) -> Self
fn balanced(self) -> Self
Sets the compression level to a balance between speed and size.
Typically set to the default compression level for the specific algorithm/implementation.
Object Safety§
This trait is not object safe.