Expand description
§Raw Pointer Implementation
This provides bitvec-internal pointer types and a mirror of the core::ptr
module.
It contains the following types:
BitPtris a raw-pointer to exactly one bit.BitRefis a proxy reference to exactly one bit.BitSpanis the encoded form of the*BitSlicepointer and&BitSlicereference. It is not publicly exposed, but it serves as the foundation ofbitvec’s ability to describe memory regions.
It also provides ports of the free functions available in core::ptr, as well
as some utilities for bridging ordinary Rust pointers into bitvec.
You should generally not use the contents of this module; BitSlice provides
more convenience and has stronger abilities to optimize performance.
Structs§
- Single-Bit Pointer
- Bit-Pointer Range
- Proxy Bit-Reference
- A basic
constmarker. - The error produced when an address is insufficiently aligned to the width of its type.
- A basic
mutmarker.
Enums§
- Errors produced by invalid bit-pointer components.
- An error produced when creating
BitSpanencoded references.
Traits§
- Generalized mutability permissions.
Functions§
- Bit-Slice Pointer Construction
- Bit-Slice Pointer Construction
- Ensures that an address is well-aligned to its referent type width.
- copy⚠Bit-wise
memcpy - Bit-wise
memcpy - drop_in_place⚠DeprecatedRemote Destructor
- Bit-Pointer Equality
- Bit-Pointer Hashing
- Bit-Pointer Sentinel Value
- Bit-Pointer Sentinel Value
- read⚠Single-Bit Read
- read_unaligned⚠DeprecatedSingle-Bit Unaligned Read
- Single-Bit Volatile Read
- Single-Bit Replacement
- Raw Bit-Slice Pointer Construction
- Raw Bit-Slice Pointer Construction
- swap⚠Bit Swap
- Many-Bit Swap
- Single-Bit Write
- Bit-wise
memset - write_bytes⚠DeprecatedBit-wise
memset - write_unaligned⚠DeprecatedSingle-Bit Unaligned Write
- Single-Bit Volatile Write