[][src]Function indexed_bitvec_core::index_raw::rank_ones

pub fn rank_ones(index: &[u64], all_bits: BitsRef, idx: u64) -> Option<u64>

Count the set bits before a position in the bits using the index (O(1)).

Returns None it the index is out of bounds.