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
impl<'a, Store: ?Sized + Bits + 'a> BitRankSupport for JacobsonRank<'a, Store>
impl<'a, Rank: BitRankSupport + 'a> BitRankSupport for BinSearchSelect<'a, Rank>