Trait succinct::BitRankSupport [] [src]

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

Returns the rank of 1 at the given position.

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

Returns the rank of 0 at the given position.

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

Implementations on Foreign Types

impl BitRankSupport for u8
[src]

[src]

[src]

impl BitRankSupport for u16
[src]

[src]

[src]

impl BitRankSupport for u32
[src]

[src]

[src]

impl BitRankSupport for u64
[src]

[src]

[src]

impl BitRankSupport for usize
[src]

[src]

[src]

Implementors