pub fn into_vec(self) -> Vec<T> {
		let (bitspan, capacity) = (self.bitspan, self.capacity);
		mem::forget(self);
		unsafe {
			Vec::from_raw_parts(
				bitspan.address().to_mut(),
				bitspan.elements(),
				capacity,
			)
		}
	}
/// Converts a bit-vector into a `Vec` of its underlying storage.
///
/// The produced vector contains all elements that contained live bits. Dead
/// bits have an unspecified value; you should call [`.set_uninitialized()`]
/// before converting into a vector.
///
/// This does not affect the allocated memory; it is purely a conversion of
/// the handle.
///
/// ## Examples
///
/// ```rust
/// use bitvec::prelude::*;
///
/// let bv = bitvec![u8, Msb0; 0, 1, 0, 0, 1];
/// let v = bv.into_vec();
/// assert_eq!(v[0] & 0xF8, 0b01001_000);
/// ```
///
/// [`.set_uninitialized()`]: Self::set_uninitialized
Converts a bit-vector into a `Vec` of its underlying storage.
The produced vector contains all elements that contained live bits. Dead
bits have an unspecified value; you should call [`.set_uninitialized()`]
before converting into a vector.

This does not affect the allocated memory; it is purely a conversion of
the handle.
Converts a bit - vector into a ` Vec ` of its underlying storage . The produced vector contains all elements that contained live bits . Dead bits have an unspecified value ; you should call [ ` . set_uninitialized () ` ] before converting into a vector . This does not affect the allocated memory ; it is purely a conversion of the handle .
pub fn into_vec(self) -> Vec<T> {
		let (bitspan, capacity) = (self.bitspan, self.capacity);
		mem::forget(self);
		unsafe {
			Vec::from_raw_parts(
				bitspan.address().to_mut(),
				bitspan.elements(),
				capacity,
			)
		}
	}
pub fn into_vec ( self ) -> Vec < T > { let ( bitspan , capacity ) = ( self . bitspan , self . capacity ) ; mem :: forget ( self ) ; unsafe { Vec :: from_raw_parts ( bitspan . address ( ) . to_mut ( ) , bitspan . elements ( ) , capacity , ) } }
Converts a bit-vector into a `Vec` of its underlying storage.
Converts a bit - vector into a ` Vec ` of its underlying storage .
self
self
examples
```rust
use bitvec::prelude::*.



[`.set_uninitialized()`]: Self::set_uninitialized
` ` ` rust use bitvec :: prelude :: * . [ ` . set_uninitialized () ` ] : Self :: set_uninitialized