pub trait CompressorStats: Debug + Clone {
type ArrayVTable: VTable;
// Required methods
fn generate_opts(
input: &<Self::ArrayVTable as VTable>::Array,
opts: GenerateStatsOptions,
) -> Self;
fn source(&self) -> &<Self::ArrayVTable as VTable>::Array;
fn sample_opts(
&self,
sample_size: u32,
sample_count: u32,
opts: GenerateStatsOptions,
) -> Self;
// Provided methods
fn generate(input: &<Self::ArrayVTable as VTable>::Array) -> Self { ... }
fn sample(&self, sample_size: u32, sample_count: u32) -> Self { ... }
}Expand description
Stats for the compressor.
Required Associated Types§
type ArrayVTable: VTable
Required Methods§
Sourcefn generate_opts(
input: &<Self::ArrayVTable as VTable>::Array,
opts: GenerateStatsOptions,
) -> Self
fn generate_opts( input: &<Self::ArrayVTable as VTable>::Array, opts: GenerateStatsOptions, ) -> Self
Generate stats with provided options
fn source(&self) -> &<Self::ArrayVTable as VTable>::Array
fn sample_opts( &self, sample_size: u32, sample_count: u32, opts: GenerateStatsOptions, ) -> Self
Provided Methods§
Sourcefn generate(input: &<Self::ArrayVTable as VTable>::Array) -> Self
fn generate(input: &<Self::ArrayVTable as VTable>::Array) -> Self
Generate stats with default options
fn sample(&self, sample_size: u32, sample_count: u32) -> Self
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.