Struct bitmap::Bitmap [] [src]

pub struct Bitmap<S: Storage, E: Element> { /* fields omitted */ }

A dense bitmap, intended to store small bitslices (<= width of u64).

That is, this type represents an array of values, where each value is E::width(instance) bits long, and the bits are stored contiguously. The first value is packed into the least significant bits of the first word.

Methods

impl<S: Storage, E: Element> Bitmap<S, E>
[src]

Get the ith bitslice, returning None on out-of-bounds or if E::from_bits returns None.

Set the ith bitslice to value, returning false on out-of-bounds or if value contains bits outside of the least significant E::width(w) bits.

Length in number of bitslices cointained.

Size of the internal buffer, in number of usizes.

impl<S: Storage> Bitmap<S, OneBit>
[src]

Return the index of the first bit set

Trait Implementations

impl<S: Storage, E: Element> Debug for Bitmap<S, E>
[src]

Formats the value using the given formatter.

impl<'a, S: Storage, E: Element> IntoIterator for &'a Bitmap<S, E>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more