[][src]Struct terminus_store::structure::bitindex::BitIndex

pub struct BitIndex { /* fields omitted */ }

A bitarray with an index, supporting rank and select queries.

Implementations

impl BitIndex[src]

pub fn from_maps(
    bitarray_map: Bytes,
    blocks_map: Bytes,
    sblocks_map: Bytes
) -> BitIndex
[src]

pub fn from_parts(
    array: BitArray,
    blocks: LogArray,
    sblocks: LogArray
) -> BitIndex
[src]

pub fn len(&self) -> usize[src]

Returns the length of the underlying bitarray.

pub fn get(&self, index: u64) -> bool[src]

Returns the bit at the given index.

pub fn rank1(&self, index: u64) -> u64[src]

Returns the amount of 1-bits in the bitarray up to and including the given index.

pub fn rank1_from_range(&self, start: u64, end: u64) -> u64[src]

Returns the amount of 1-bits in the given range (up to but excluding end).

pub fn select1(&self, rank: u64) -> Option<u64>[src]

Returns the index of the 1-bit in the bitarray corresponding with the given rank.

pub fn select1_from_range(
    &self,
    subrank: u64,
    start: u64,
    end: u64
) -> Option<u64>
[src]

pub fn rank0(&self, index: u64) -> u64[src]

Returns the amount of 0-bits in the bitarray up to and including the given index.

pub fn rank0_from_range(&self, start: u64, end: u64) -> u64[src]

Returns the amount of 0-bits in the given range (up to but excluding end).

pub fn select0(&self, rank: u64) -> Option<u64>[src]

Returns the index of the 0-bit in the bitarray corresponding with the given rank.

pub fn select0_from_range(
    &self,
    subrank: u64,
    start: u64,
    end: u64
) -> Option<u64>
[src]

Trait Implementations

impl Clone for BitIndex[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,