Debian Codegraph @

debian/rust-vendor/bitvec/doc/access/impl_BitSafe.md

raw
1 # Read-Only Shared-Mutable Handle
2
3 This type marks a handle to a shared-mutable type that may be modified through
4 *other* handles, but cannot be modified through *this* one. It is used when a
5 [`BitSlice`] region has partial ownership of an element and wishes to expose the
6 entire underlying raw element to the user without granting them write
7 permissions.
8
9 Under the `feature = "atomic"` build setting, this uses `radium`’s best-effort
10 atomic alias; when this feature is disabled, it reverts to `Cell`.
11
12 [`BitSlice`]: crate::slice::BitSlice