brotli::enc::histogram

Trait CostAccessors

Source
pub trait CostAccessors {
    type i32vec: Sized + SliceWrapper<Mem256i> + SliceWrapperMut<Mem256i>;

    // Required methods
    fn make_nnz_storage() -> Self::i32vec;
    fn total_count(&self) -> usize;
    fn bit_cost(&self) -> floatX;
    fn set_bit_cost(&mut self, cost: floatX);
    fn set_total_count(&mut self, count: usize);
}

Required Associated Types§

Required Methods§

Source

fn make_nnz_storage() -> Self::i32vec

Source

fn total_count(&self) -> usize

Source

fn bit_cost(&self) -> floatX

Source

fn set_bit_cost(&mut self, cost: floatX)

Source

fn set_total_count(&mut self, count: usize)

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§