Trait succinct::rank::BitRankSupport [] [src]

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

Convenience trait for RankSupport over bool.

Provided Methods

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

Returns the rank of 1 at the given position.

This is the number of occurrences of 0 up to 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.

Implementors