Debian Codegraph @

debian/rust-vendor/bitvec/doc/ptr.md

raw
1 # Raw Pointer Implementation
2
3 This provides `bitvec`-internal pointer types and a mirror of the [`core::ptr`]
4 module.
5
6 It contains the following types:
7
8 - [`BitPtr`] is a raw-pointer to exactly one bit.
9 - [`BitRef`] is a proxy reference to exactly one bit.
10 - `BitSpan` is the encoded form of the `*BitSlice` pointer and `&BitSlice`
11 reference. It is not publicly exposed, but it serves as the foundation of
12 `bitvec`’s ability to describe memory regions.
13
14 It also provides ports of the free functions available in `core::ptr`, as well
15 as some utilities for bridging ordinary Rust pointers into `bitvec`.
16
17 You should generally not use the contents of this module; `BitSlice` provides
18 more convenience and has stronger abilities to optimize performance.
19
20 [`BitPtr`]: self::BitPtr
21 [`BitRef`]: self::BitRef
22 [`core::ptr`]: core::ptr