pub struct BitMut<'a, O, T> where
    O: BitOrder,
    T: 'a + BitStore
{ /* private fields */ }
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

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.