Files
2026-08-01 16:11:49 +03:00

23 lines
832 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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 of
`bitvec`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.
[`BitPtr`]: self::BitPtr
[`BitRef`]: self::BitRef
[`core::ptr`]: core::ptr