[][src]Struct succinct::Rank9

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.

pub 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: SpaceUsage> SpaceUsage for Rank9<Store>[src]

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

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.

impl<Store: BitVec<Block = u64>> RankSupport for Rank9<Store>[src]

type Over = bool

The type of value to rank.

impl<Store: BitVec<Block = u64>> BitRankSupport for Rank9<Store>[src]

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

Returns the rank of 0 at the given position. Read more

impl<Store: Clone> Clone for Rank9<Store>[src]

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]

Auto Trait Implementations

impl<Store> Send for Rank9<Store> where
    Store: Send

impl<Store> Unpin for Rank9<Store> where
    Store: Unpin

impl<Store> Sync for Rank9<Store> where
    Store: Sync

impl<Store> UnwindSafe for Rank9<Store> where
    Store: UnwindSafe

impl<Store> RefUnwindSafe for Rank9<Store> where
    Store: RefUnwindSafe

Blanket Implementations

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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