[][src]Trait succinct::BitRankSupport

pub trait BitRankSupport: RankSupport<Over = bool> {
    fn rank1(&self, position: u64) -> u64 { ... }
fn rank0(&self, position: u64) -> u64 { ... } }

Supports fast rank queries over bools.

Provided methods

fn rank1(&self, position: u64) -> u64

Returns the rank of 1 at the given position.

This is the number of occurrences of 1 up to and including that position.

fn rank0(&self, position: u64) -> u64

Returns the rank of 0 at the given position.

This is the number of occurrences of 0 up to and including that position.

Loading content...

Implementations on Foreign Types

impl BitRankSupport for u8[src]

impl BitRankSupport for u16[src]

impl BitRankSupport for u32[src]

impl BitRankSupport for u64[src]

impl BitRankSupport for usize[src]

Loading content...

Implementors

impl BitRankSupport for Broadword[src]

impl<Rank: BitRankSupport> BitRankSupport for BinSearchSelect<Rank>[src]

impl<Store: BitVec> BitRankSupport for JacobsonRank<Store>[src]

impl<Store: BitVec<Block = u64>> BitRankSupport for Rank9<Store>[src]

Loading content...