pub trait RankArray {
    fn build(count_ranks: Vec<usize>) -> Box<Self>;
fn serialize_into<W: Write>(&self, writer: W) -> Result<usize>;
fn deserialize_from<R: Read>(reader: R) -> Result<Box<Self>>;
fn size_in_bytes(&self) -> usize;
fn memory_statistics(&self) -> Value;
fn get(&self, i: usize) -> usize;
fn len(&self) -> usize;
fn is_empty(&self) -> bool; }
Expand description

Trait for a data structure for storing count ranks.

Required methods

Builds a RankArray from a sequence of count ranks.

Serializes the data structure into the writer.

Deserializes the data structure from the reader.

Gets the number of bytes to serialize the data structure.

Gets breakdowns of memory usages for components.

Gets the i-th count rank.

Gets the number of count ranks stored.

Checks if the data structure is empty.

Implementors