Trait CompressionRange

Source
pub trait CompressionRange {
    const DEFAULT_COMPRESSION_LEVEL: u8 = 6u8;
    const COMPRESSION_LEVEL_RANGE: RangeInclusive<i64> = _;

    // Required method
    fn new(compression_level: u8) -> Self;

    // Provided methods
    fn range_i64() -> RangeInclusive<i64> { ... }
    fn range_u8() -> RangeInclusive<u8> { ... }
    fn range_u8_with_omit(omit: &[u8]) -> Vec<u8>  { ... }
}

Provided Associated Constants§

Required Methods§

Source

fn new(compression_level: u8) -> Self

Provided Methods§

Source

fn range_i64() -> RangeInclusive<i64>

Source

fn range_u8() -> RangeInclusive<u8>

Source

fn range_u8_with_omit(omit: &[u8]) -> Vec<u8>

Omits the provided list of compression levels and returns a list of the rest

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§