Trait succinct::IntVector [] [src]

pub trait IntVector {
    type Block: BlockType;
    fn len(&self) -> u64;
    fn element_bits(&self) -> usize;
    fn get(&self, index: u64) -> Self::Block;

    fn is_empty(&self) -> bool { ... }
}

Types that can be accessed as immutable arrays of integers of limited width.

Associated Types

type Block: BlockType

The type of primitive value to represent elements.

Required Methods

fn len(&self) -> u64

The number of elements.

fn element_bits(&self) -> usize

The bit width of each element.

fn get(&self, index: u64) -> Self::Block

Fetches the value of the indexth element.

Panics

Panics if index is out of bounds.

Provided Methods

fn is_empty(&self) -> bool

Is the vector empty?

Implementors