Lz77Parameters

Trait Lz77Parameters 

Source
pub trait Lz77Parameters {
    const MAX_OFFSET: usize;
    const MAX_LENGTH: usize;
}
Expand description

This trait specifies constant parameters for the lz77_get_longest_match_fast and lz77_get_longest_match_slow functions.

This allows for the compiler to generate different optimized versions of the function, via the use of monomorphization and constant propagation.

Required Associated Constants§

Source

const MAX_OFFSET: usize

Maximum offset (from the current position) to search for a match. Specified as positive, so 0x1000 means 0x1000 bytes back.

Source

const MAX_LENGTH: usize

Maximum length of the match.

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§