compression_core/
level.rs

1/// Level of compression data should be compressed with.
2#[non_exhaustive]
3#[derive(Default, Clone, Copy, Debug)]
4pub enum Level {
5    /// Fastest quality of compression, usually produces bigger size.
6    Fastest,
7
8    /// Best quality of compression, usually produces the smallest size.
9    Best,
10
11    /// Default quality of compression defined by the selected compression algorithm.
12    #[default]
13    Default,
14
15    /// Precise quality based on the underlying compression algorithms' qualities. The
16    /// interpretation of this depends on the algorithm chosen and the specific implementation
17    /// backing it. Qualities are implicitly clamped to the algorithm's maximum.
18    Precise(i32),
19}