[−][src]Struct terminus_store::structure::bitindex::BitIndex
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]
bitarray_map: Bytes,
blocks_map: Bytes,
sblocks_map: Bytes
) -> BitIndex
pub fn from_parts(
array: BitArray,
blocks: LogArray,
sblocks: LogArray
) -> BitIndex
[src]
array: BitArray,
blocks: LogArray,
sblocks: LogArray
) -> BitIndex
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]
&self,
subrank: u64,
start: u64,
end: u64
) -> Option<u64>
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]
&self,
subrank: u64,
start: u64,
end: u64
) -> Option<u64>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BitIndex
impl Send for BitIndex
impl Sync for BitIndex
impl Unpin for BitIndex
impl UnwindSafe for BitIndex
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,