Module bitvec::slice

source · []
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 the BitSlice data structure, its inherent methods that are original to bitvec, as well as some free functions.
  • slice::api defines ports of the impl<T> [T] inherent blocks from core::slice.
  • slice::iter contains all the logic used to iterate across BitSlices, including ports of core::slice iterators.
  • slice::ops contains implementations of core::ops traits that power operator sigils.
  • slice::traits contains all the other trait implementations.
  • slice::tests contains unit tests for BitSlice 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

Bit-Addressable Memory

Shared Bit-Slice Chunking

Shared Bit-Slice Exact Chunking

Exclusive Bit-Slice Exact Chunking

Anti-Aliasing Iterator Adapter

Exclusive Bit-Slice Chunking

Anti-Aliasing Iterator Adapter

Shared Bit-Slice Iteration

Exclusive Bit-Slice Iteration

Anti-Aliasing Iterator Adapter

Bit Seeking

Bit Seeking

Shared Bit-Slice Reverse Chunking

Shared Bit-Slice Reverse Exact Chunking

Exclusive Bit-Slice Reverse Exact Chunking

Anti-Aliasing Iterator Adapter

Exclusive Bit-Slice Chunking

Anti-Aliasing Iterator Adapter

Shared Bit-Slice Reverse Splitting

Exclusive Bit-Slice Reverse Splitting

Anti-Aliasing Iterator Adapter

Shared Bit-Slice Reverse Splitting

Exclusive Bit-Slice Reverse Splitting

Anti-Aliasing Iterator Adapter

Shared Bit-Slice Splitting

Shared Bit-Slice Splitting

Exclusive Bit-Slice Splitting

Anti-Aliasing Iterator Adapter

Exclusive Bit-Slice Splitting

Anti-Aliasing Iterator Adapter

Shared Bit-Slice Splitting

Exclusive Bit-Slice Splitting

Anti-Aliasing Iterator Adapter

Bit-Slice Windowing

Traits

Bit-Slice Indexing

Functions

from_mutDeprecated

Raw Bit-Slice Construction

Raw Bit-Slice Construction

Raw Bit-Slice Construction

Raw Bit-Slice Construction

from_refDeprecated