Expand description
Proxy referential type, equivalent to &mut bool
.
This structure is three words wide, and cannot ever fit into the existing Rust
language and library infrastructure in the way &BitSlice
does. While &mut
write references are themselves an affine type, with a guaranteed single point
of destruction and no duplication, the language forbids writing finalization
logic for them.
This means that a custom reference type which implements Deref
and DerefMut
to a location within the canonical handle, and on Drop
writes the Deref
location into referent memory, is impossible. Short of that, a C++-style thick
reference-like type is as close as Rust will allow.
Trait Implementations
Auto Trait Implementations
impl<'a, O, T> RefUnwindSafe for BitMut<'a, O, T> where
O: RefUnwindSafe,
T: RefUnwindSafe,
<T as BitStore>::Access: RefUnwindSafe,
impl<'a, O, T> !Send for BitMut<'a, O, T>
impl<'a, O, T> !Sync for BitMut<'a, O, T>
impl<'a, O, T> Unpin for BitMut<'a, O, T> where
T: Unpin,
impl<'a, O, T> !UnwindSafe for BitMut<'a, O, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more