Expand description
§Bit-Addressable Memory Regions
This module defines the BitSlice
region, which forms the primary export item
of the crate. It is a region of memory that addresses each bit individually, and
is analogous to the slice language item. See BitSlice
’s documentation for
information on its use.
The other data structures bitvec
offers are built atop BitSlice
, and follow
the development conventions outlined in this module. Because the API surface for
bitvec
data structures is so large, they are broken into a number of common
submodules:
slice
defines theBitSlice
data structure, its inherent methods that are original tobitvec
, as well as some free functions.slice::api
defines ports of theimpl<T> [T]
inherent blocks fromcore::slice
.slice::iter
contains all the logic used to iterate acrossBitSlices
, including ports ofcore::slice
iterators.slice::ops
contains implementations ofcore::ops
traits that power operator sigils.slice::traits
contains all the other trait implementations.slice::tests
contains unit tests forBitSlice
inherent methods.
Additionally, slice
has a submodule unique to it: specialization
contains
override functions that provide faster behavior on known BitOrder
implementations. Since the other data structures Deref
to it, they do not need
to implement bit-order specializations of their own.
All ports of language or standard-library items have an ## Original
section in
their documentation that links to the item they are porting, and possibly an
## API Differences
that explains why the bitvec
item is not a drop-in
replacement.
Structs§
- BitSlice
- Bit-Addressable Memory
- BitVal
Iter - An iterator over
BitSlice
that yieldsbool
directly. - Chunks
- Shared Bit-Slice Chunking
- Chunks
Exact - Shared Bit-Slice Exact Chunking
- Chunks
Exact Mut - Exclusive Bit-Slice Exact Chunking
- Chunks
Exact MutNo Alias - Anti-Aliasing Iterator Adapter
- Chunks
Mut - Exclusive Bit-Slice Chunking
- Chunks
MutNo Alias - Anti-Aliasing Iterator Adapter
- Iter
- Shared Bit-Slice Iteration
- IterMut
- Exclusive Bit-Slice Iteration
- Iter
MutNo Alias - Anti-Aliasing Iterator Adapter
- Iter
Ones - Bit Seeking
- Iter
Zeros - Bit Seeking
- RChunks
- Shared Bit-Slice Reverse Chunking
- RChunks
Exact - Shared Bit-Slice Reverse Exact Chunking
- RChunks
Exact Mut - Exclusive Bit-Slice Reverse Exact Chunking
- RChunks
Exact MutNo Alias - Anti-Aliasing Iterator Adapter
- RChunks
Mut - Exclusive Bit-Slice Chunking
- RChunks
MutNo Alias - Anti-Aliasing Iterator Adapter
- RSplit
- Shared Bit-Slice Reverse Splitting
- RSplit
Mut - Exclusive Bit-Slice Reverse Splitting
- RSplit
MutNo Alias - Anti-Aliasing Iterator Adapter
- RSplitN
- Shared Bit-Slice Reverse Splitting
- RSplitN
Mut - Exclusive Bit-Slice Reverse Splitting
- RSplitN
MutNo Alias - Anti-Aliasing Iterator Adapter
- Split
- Shared Bit-Slice Splitting
- Split
Inclusive - Shared Bit-Slice Splitting
- Split
Inclusive Mut - Exclusive Bit-Slice Splitting
- Split
Inclusive MutNo Alias - Anti-Aliasing Iterator Adapter
- Split
Mut - Exclusive Bit-Slice Splitting
- Split
MutNo Alias - Anti-Aliasing Iterator Adapter
- SplitN
- Shared Bit-Slice Splitting
- SplitN
Mut - Exclusive Bit-Slice Splitting
- SplitN
MutNo Alias - Anti-Aliasing Iterator Adapter
- Windows
- Bit-Slice Windowing
Traits§
- BitSlice
Index - Bit-Slice Indexing
Functions§
- from_
mut Deprecated - from_
raw_ ⚠parts - Raw Bit-Slice Construction
- from_
raw_ ⚠parts_ mut - Raw Bit-Slice Construction
- from_
raw_ ⚠parts_ unchecked - Raw Bit-Slice Construction
- from_
raw_ ⚠parts_ unchecked_ mut - Raw Bit-Slice Construction
- from_
ref Deprecated
Type Aliases§
- BitRef
Iter - An iterator over
BitSlice
that yields&bool
directly.