Expand description
contains Bitmap and MutableBitmap, containers of bool.
Re-exports§
pub use iterator::IntoIter;
Modules§
- aligned
- bitmask
- iterator
- utils
- General utilities for bitmaps representing items where LSB is the first item.
Structs§
- Bitmap
- An immutable container semantically equivalent to
Arc<Vec<bool>>but represented asArc<Vec<u8>>where each boolean is represented as a single bit. - Bitmap
Builder - Used to build bitmaps bool-by-bool in sequential order.
- Mutable
Bitmap - A container of booleans.
MutableBitmapis semantically equivalent toVec<bool>.
Enums§
- OptBitmap
Builder - A wrapper for BitmapBuilder that does not allocate until the first false is pushed. Less efficient if you know there are false values because it must check if it has allocated for each push.
Functions§
- and
- Compute bitwise A AND B operation.
- and_not
- Compute bitwise A AND NOT B operation.
- binary
- Apply a bitwise operation
opto two inputs and return the result as aBitmap. - binary_
assign - Apply a bitwise binary operation to a
MutableBitmap. - binary_
assign_ mut - Apply a bitwise binary operation to a
MutableBitmap. - binary_
fold - Apply a bitwise operation
opto two inputs and fold the result. - binary_
fold_ mut - Apply a bitwise operation
opto two inputs and fold the result. - chunk_
iter_ to_ vec - Creates a
Vec<u8>from aTrustedLenofBitChunk. - intersects_
with - intersects_
with_ mut - num_
edges - num_
intersections_ with - or
- Compute bitwise A OR B operation.
- or_not
- Compute bitwise A OR NOT B operation.
- quaternary
- Apply a bitwise operation
opto four inputs and return the result as aBitmap. - select
- Compute
out[i] = if selector[i] { truthy[i] } else { falsy[i] }. - select_
constant - Compute
out[i] = if selector[i] { truthy[i] } else { falsy }. - ternary
- Apply a bitwise operation
opto three inputs and return the result as aBitmap. - unary
- Apply a bitwise operation
opto one input and return the result as aBitmap. - unary_
assign - Applies a function to every bit of this
MutableBitmapin chunks - xor
- Compute bitwise XOR operation.