Struct succinct::Rank9
[−]
[src]
pub struct Rank9<Store> { /* fields omitted */ }Vigna’s rank structure for fast rank queries over a BitVec.
Methods
impl<Store: BitVec<Block = u64>> Rank9<Store>[src]
pub fn new(bits: Store) -> Self[src]
Creates a new rank9 structure.
ⓘImportant traits for &'a mut Wpub fn inner(&self) -> &Store[src]
Borrows a reference to the underlying bit store.
pub fn into_inner(self) -> Store[src]
Returns the underlying bit store.
Trait Implementations
impl<Store: Clone> Clone for Rank9<Store>[src]
fn clone(&self) -> Rank9<Store>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl<Store: Debug> Debug for Rank9<Store>[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more
impl<Store: BitVec<Block = u64>> BitRankSupport for Rank9<Store>[src]
fn rank1(&self, position: u64) -> u64[src]
Returns the rank of 1 at the given position. Read more
fn rank0(&self, position: u64) -> u64[src]
Returns the rank of 0 at the given position. Read more
impl<Store: BitVec<Block = u64>> RankSupport for Rank9<Store>[src]
type Over = bool
The type of value to rank.
fn rank(&self, position: u64, value: bool) -> u64[src]
Returns the rank of the given value at a given position. Read more
fn limit(&self) -> u64[src]
The size of the vector being ranked.
impl<Store: BitVec<Block = u64>> BitVec for Rank9<Store>[src]
type Block = u64
The underlying block type used to store the bits of the vector.
fn bit_len(&self) -> u64[src]
The length of the slice in bits.
fn block_len(&self) -> usize[src]
The length of the slice in blocks.
fn get_block(&self, index: usize) -> u64[src]
Gets the block at position Read more
fn get_bit(&self, index: u64) -> bool[src]
Gets the bit at position Read more
fn get_bits(&self, index: u64, count: usize) -> u64[src]
Gets count bits starting at bit index start, interpreted as a little-endian integer. Read more
impl<Store: SpaceUsage> SpaceUsage for Rank9<Store>[src]
fn is_stack_only() -> bool[src]
Is the size of this type known statically? Read more
fn heap_bytes(&self) -> usize[src]
Calculates the heap portion of the size of an object. Read more
fn total_bytes(&self) -> usize[src]
Computes the size of the receiver in bytes. Read more
fn stack_bytes() -> usize[src]
Calculates the stack portion of the size of this type. Read more