Struct bitvec::slice::BitMut [−][src]
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
impl<O, T> Deref for BitMut<'_, O, T> where
O: BitOrder,
T: BitStore,
[src]
O: BitOrder,
T: BitStore,
impl<O, T> DerefMut for BitMut<'_, O, T> where
O: BitOrder,
T: BitStore,
[src]
O: BitOrder,
T: BitStore,
impl<O, T> Drop for BitMut<'_, O, T> where
O: BitOrder,
T: BitStore,
[src]
O: BitOrder,
T: BitStore,
Auto Trait Implementations
impl<'a, O, T> RefUnwindSafe for BitMut<'a, O, T> where
O: RefUnwindSafe,
T: RefUnwindSafe,
<T as BitStore>::Access: RefUnwindSafe,
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,
T: Unpin,
impl<'a, O, T> !UnwindSafe for BitMut<'a, O, T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,