pub fn reverse(&mut self) {
		let mut iter = self.as_mut_bitptr_range();
		while let (Some(a), Some(b)) = (iter.next(), iter.next_back()) {
			unsafe {
				crate::ptr::swap(a, b);
			}
		}
	}
/// Reverses the order of bits in a bit-slice.
///
/// ## Original
///
/// [`slice::reverse`](https://doc.rust-lang.org/std/primitive.slice.html#method.reverse)
///
/// ## Examples
///
/// ```rust
/// use bitvec::prelude::*;
///
/// let bits = bits![mut 0, 0, 1, 0, 1, 1, 0, 0, 1];
/// bits.reverse();
/// assert_eq!(bits, bits![1, 0, 0, 1, 1, 0, 1, 0, 0]);
/// ```
Reverses the order of bits in a bit-slice.
Reverses the order of bits in a bit - slice .
pub fn reverse(&mut self) {
		let mut iter = self.as_mut_bitptr_range();
		while let (Some(a), Some(b)) = (iter.next(), iter.next_back()) {
			unsafe {
				crate::ptr::swap(a, b);
			}
		}
	}
pub fn reverse ( & mut self ) { let mut iter = self . as_mut_bitptr_range ( ) ; while let ( Some ( a ) , Some ( b ) ) = ( iter . next ( ) , iter . next_back ( ) ) { unsafe { crate :: ptr :: swap ( a , b ) ; } } }
Reverses the order of bits in a bit-slice.
Reverses the order of bits in a bit - slice .
&mut self
&mut self
original
None
examples
```rust
use bitvec::prelude::*.


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