[][src]Trait succinct::IntVec

pub trait IntVec {
    type Block: BlockType;
    fn len(&self) -> u64;
fn element_bits(&self) -> usize;
fn get(&self, index: u64) -> Self::Block; fn is_empty(&self) -> bool { ... } }

An immutable array of integers of limited width.

Associated Types

type Block: BlockType

The type of primitive value to represent elements.

Loading content...

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.

Loading content...

Provided methods

fn is_empty(&self) -> bool

Is the vector empty?

Loading content...

Implementors

impl<Block: BlockType> IntVec for IntVector<Block>[src]

type Block = Block

Loading content...