pub fn into_boxed_slice(self) -> Box<[T]> {
		self.pipe(ManuallyDrop::new)
			.as_raw_mut_slice()
			.pipe(|slice| unsafe { Box::from_raw(slice) })
	}
/// Converts the bit-box back into an ordinary boxed element slice.
///
/// This does not touch the allocator or the buffer contents; it is purely a
/// handle transform.
///
/// ## Examples
///
/// ```rust
/// use bitvec::prelude::*;
///
/// let bb = bitbox![0; 5];
/// let addr = bb.as_raw_slice().as_ptr();
/// let boxed = bb.into_boxed_slice();
/// assert_eq!(boxed[..], [0][..]);
/// assert_eq!(addr, boxed.as_ptr());
/// ```
Converts the bit-box back into an ordinary boxed element slice.
This does not touch the allocator or the buffer contents; it is purely a
handle transform.
Converts the bit - box back into an ordinary boxed element slice . This does not touch the allocator or the buffer contents ; it is purely a handle transform .
pub fn into_boxed_slice(self) -> Box<[T]> {
		self.pipe(ManuallyDrop::new)
			.as_raw_mut_slice()
			.pipe(|slice| unsafe { Box::from_raw(slice) })
	}
pub fn into_boxed_slice ( self ) -> Box < [ T ] > { self . pipe ( ManuallyDrop :: new ) . as_raw_mut_slice ( ) . pipe ( | slice | unsafe { Box :: from_raw ( slice ) } ) }
Converts the bit-box back into an ordinary boxed element slice.
Converts the bit - box back into an ordinary boxed element slice .
self
self
examples
```rust
use bitvec::prelude::*.


` ` ` rust use bitvec :: prelude :: * .