[][src]Struct shine_graph::bits::BitSet

pub struct BitSet<B: BitBlock> { /* fields omitted */ }

Hierarchical bitset. Each level indicates if any bit is set in the subtree. http://www.cs.loyola.edu/~binkley/papers/tcsrt08-hbit-vectors.pdf

Methods

impl<B: BitBlock> BitSet<B>[src]

pub fn new() -> BitSet<B>[src]

pub fn new_with_capacity(capacity: usize) -> BitSet<B>[src]

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

return the number of set bits

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

pub fn increase_capacity_to(&mut self, capacity: usize)[src]

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

Return the count of the bitset that can be stored without (re)allocation.

pub fn reserve(&mut self, additional: usize) -> usize[src]

Reserve memory to store some more bits and return the new capacity. Capacity is rouned up to the nearest block-size.

pub fn get_level(&self, level: usize) -> &[B][src]

pub fn add(&mut self, pos: usize) -> bool[src]

pub fn remove(&mut self, pos: usize) -> bool[src]

pub fn clear(&mut self)[src]

Trait Implementations

impl<B: BitBlock> BitSetView for BitSet<B>[src]

type Bits = B

impl<B: BitBlock> Default for BitSet<B>[src]

Auto Trait Implementations

impl<B> Send for BitSet<B> where
    B: Send

impl<B> Sync for BitSet<B> where
    B: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto 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 for T where
    T: ?Sized
[src]

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

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