Trait Compressor

Source
pub trait Compressor<T>
where Self: FromIterator<T>, T: Ord,
{ // Required methods fn index_exact(&self, index: &T) -> Option<usize>; fn index_lower_bound(&self, index: &T) -> usize; fn size(&self) -> usize; }

Required Methods§

Source

fn index_exact(&self, index: &T) -> Option<usize>

Source

fn index_lower_bound(&self, index: &T) -> usize

Source

fn size(&self) -> 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§

Source§

impl<T> Compressor<T> for HashCompress<T>
where T: Ord + Hash,

Source§

impl<T> Compressor<T> for VecCompress<T>
where T: Ord,