| 1 |
# Partially-Owned Memory Element |
| 2 |
|
| 3 |
This type is a guarded reference to memory that permits interacting with it as |
| 4 |
an integer, but only allows views to the section of the integer that the |
| 5 |
producing handle has permission to observe. Unlike the `BitSafe` type family in |
| 6 |
the [`access`] module, it is not a transparent wrapper that can be used for |
| 7 |
reference conversion; it is a “heavy reference” that carries the mask and |
| 8 |
|
| 9 |
## Type Parameters |
| 10 |
|
| 11 |
- `T`: The type, including register width and alias information, of the |
| 12 |
bit-slice handle that created it. |
| 13 |
- `O`: This propagates the bit-ordering type used by the [`BitSlice`] handle |
| 14 |
that created it. |
| 15 |
|
| 16 |
## Lifetime |
| 17 |
|
| 18 |
This carries the lifetime of the bit-slice handle that created it. |
| 19 |
|
| 20 |
## Usage |
| 21 |
|
| 22 |
This structure is only created as part of the [`Domain`] region descriptions, |
| 23 |
and refers to partially-occupied edge elements. The underlying referent memory |
| 24 |
can be read with `.load_value()` or written with `.store_value()`, and the |
| 25 |
appropriate masking will be applied in order to restrict access to only the |
| 26 |
permitted bits. |
| 27 |
|
| 28 |
[`access`]: crate::access |
| 29 |
[`BitSlice`]: crate::slice::BitSlice |
| 30 |
[`Domain`]: Domain |