File: impl_BitSafe.md

package info (click to toggle)
rust-bitvec 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,780 kB
  • sloc: makefile: 2
file content (12 lines) | stat: -rw-r--r-- 543 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
# Read-Only Shared-Mutable Handle

This type marks a handle to a shared-mutable type that may be modified through
*other* handles, but cannot be modified through *this* one. It is used when a
[`BitSlice`] region has partial ownership of an element and wishes to expose the
entire underlying raw element to the user without granting them write
permissions.

Under the `feature = "atomic"` build setting, this uses `radium`’s best-effort
atomic alias; when this feature is disabled, it reverts to `Cell`.

[`BitSlice`]: crate::slice::BitSlice