Module ptr
Expand description
§Raw Pointer Implementation
This provides bitvec
-internal pointer types and a mirror of the core::ptr
module.
It contains the following types:
BitPtr
is a raw-pointer to exactly one bit.BitRef
is a proxy reference to exactly one bit.BitSpan
is the encoded form of the*BitSlice
pointer and&BitSlice
reference. 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
const
marker. - The error produced when an address is insufficiently aligned to the width of its type.
- A basic
mut
marker.
Enums§
- Errors produced by invalid bit-pointer components.
- An error produced when creating
BitSpan
encoded references.
Traits§
- Generalized mutability permissions.
Functions§
- bitslice_
from_ raw_ parts Non- tarpaulin_include
Bit-Slice Pointer Construction - bitslice_
from_ raw_ parts_ mut Non- tarpaulin_include
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 Deprecated Remote Destructor - Bit-Pointer Equality
- hash
Non- tarpaulin_include
Bit-Pointer Hashing - null
Non- tarpaulin_include
Bit-Pointer Sentinel Value - null_
mut Non- tarpaulin_include
Bit-Pointer Sentinel Value - read⚠
Non- tarpaulin_include
Single-Bit Read - read_
unaligned ⚠Deprecated Non- tarpaulin_include
Single-Bit Unaligned Read - read_
volatile ⚠Non- tarpaulin_include
Single-Bit Volatile Read - replace⚠
Non- tarpaulin_include
Single-Bit Replacement - slice_
from_ raw_ parts Non- tarpaulin_include
Raw Bit-Slice Pointer Construction - slice_
from_ raw_ parts_ mut Non- tarpaulin_include
Raw Bit-Slice Pointer Construction - swap⚠Bit Swap
- Many-Bit Swap
- write⚠
Non- tarpaulin_include
Single-Bit Write - Bit-wise
memset
- write_
bytes ⚠Deprecated Non- tarpaulin_include
Bit-wisememset
- write_
unaligned ⚠Deprecated Non- tarpaulin_include
Single-Bit Unaligned Write - write_
volatile ⚠Non- tarpaulin_include
Single-Bit Volatile Write