| 1 |
# Memory Bus Access Management |
| 2 |
|
| 3 |
`bitvec` allows a program to produce handles over memory that do not *logically* |
| 4 |
alias their bits, but *may* alias their hardware locations. This module provides |
| 5 |
a unified interface for memory accesses that can be specialized to handle such |
| 6 |
aliased and unaliased events. |
| 7 |
|
| 8 |
The [`BitAccess`] trait provides capabilities to access individual or clustered |
| 9 |
bits in memory elements through shared, maybe-aliased, references. Its |
| 10 |
implementations are responsible for coördinating synchronization and contention |
| 11 |
as needed. |
| 12 |
|
| 13 |
The [`BitSafe`] trait guards [`Radium`] types in order to forbid writing through |
| 14 |
shared-only references, and require access to an `&mut` exclusive reference for |
| 15 |
modification. This permits other components in the crate that do *not* have |
| 16 |
`BitSafe` reference guards to safely mutate a referent element that a `BitSafe`d |
| 17 |
reference can observe, while preventing that reference from emitting mutations |
| 18 |
of its own. |
| 19 |
|
| 20 |
[`BitAccess`]: self::BitAccess |
| 21 |
[`BitSafe`]: self::BitSafe |
| 22 |
[`Radium`]: radium::Radium |