pub unsafe fn replace_unchecked(
		&mut self,
		index: usize,
		value: bool,
	) -> bool {
		self.as_mut_bitptr().add(index).replace(value)
	}
/// Writes a new value into a bit, returning the previous value, without
/// bounds checking.
///
/// ## Safety
///
/// `index` must be less than `self.len()`.
///
/// ## Examples
///
/// ```rust
/// use bitvec::prelude::*;
///
/// let bits = bits![mut 0, 0];
/// let old = unsafe {
///   let a = &mut bits[.. 1];
///   a.replace_unchecked(1, true)
/// };
/// assert!(!old);
/// assert!(bits[1]);
/// ```
Writes a new value into a bit, returning the previous value, without
bounds checking.
Writes a new value into a bit returning the previous value without bounds checking .
pub unsafe fn replace_unchecked(
		&mut self,
		index: usize,
		value: bool,
	) -> bool {
		self.as_mut_bitptr().add(index).replace(value)
	}
pub unsafe fn replace_unchecked ( & mut self , index : usize , value : bool , ) -> bool { self . as_mut_bitptr ( ) . add ( index ) . replace ( value ) }
Writes a new value into a bit, returning the previous value, without
bounds checking.
Writes a new value into a bit returning the previous value without bounds checking .
&mut self
index
usize
value
bool
&mut self
index
usize
value
bool
safety
`index` must be less than `self.len()`.
` index ` must be less than ` self . len () ` .
examples
```rust
use bitvec::prelude::*.

let bits = bits![mut 0, 0];
let old = unsafe {
let a = &mut bits[..
` ` ` rust use bitvec :: prelude :: * . let bits = bits! [ mut 0 0 ] ; let old = unsafe { let a = &mut bits [ ..