[−][src]Struct bitvec::prelude::BitMut
Heavy-weight 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
impl<'_, C, T> Drop for BitMut<'_, C, T> where
C: Cursor,
T: BitStore,
[src]
C: Cursor,
T: BitStore,
impl<'_, C, T> Deref for BitMut<'_, C, T> where
C: Cursor,
T: BitStore,
[src]
C: Cursor,
T: BitStore,
impl<'_, C, T> DerefMut for BitMut<'_, C, T> where
C: Cursor,
T: BitStore,
[src]
C: Cursor,
T: BitStore,
Auto Trait Implementations
impl<'a, C, T> Send for BitMut<'a, C, T>
impl<'a, C, T> Sync for BitMut<'a, C, T>
impl<'a, C, T> Unpin for BitMut<'a, C, T>
impl<'a, C, T> !UnwindSafe for BitMut<'a, C, T>
impl<'a, C, T> RefUnwindSafe for BitMut<'a, C, T> where
C: RefUnwindSafe,
T: RefUnwindSafe,
C: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,