pub fn extend_from_within<R>(&mut self, src: R)
	where R: RangeExt<usize> {
		let old_len = self.len();
		let src = src.normalize(0, old_len);
		self.assert_in_bounds(src.end, 0 .. old_len);
		self.resize(old_len + src.len(), false);
		unsafe {
			self.copy_within_unchecked(src, old_len);
		}
	}
/// Extends `self` by copying an internal range of its bit-slice as the
/// region to append.
///
/// ## Original
///
/// [`Vec::extend_from_within`](alloc::vec::Vec::extend_from_within)
///
/// ## Panics
///
/// This panics if `src` is not within `0 .. self.len()`.
///
/// ## Examples
///
/// ```rust
/// use bitvec::prelude::*;
///
/// let mut bv = bitvec![0, 1, 0, 0, 1];
/// bv.extend_from_within(1 .. 4);
/// assert_eq!(bv, bits![0, 1, 0, 0, 1, 1, 0, 0]);
/// ```
Extends `self` by copying an internal range of its bit-slice as the
region to append.
Extends ` self ` by copying an internal range of its bit - slice as the region to append .
pub fn extend_from_within<R>(&mut self, src: R)
	where R: RangeExt<usize> {
		let old_len = self.len();
		let src = src.normalize(0, old_len);
		self.assert_in_bounds(src.end, 0 .. old_len);
		self.resize(old_len + src.len(), false);
		unsafe {
			self.copy_within_unchecked(src, old_len);
		}
	}
pub fn extend_from_within < R > ( & mut self , src : R ) where R : RangeExt < usize > { let old_len = self . len ( ) ; let src = src . normalize ( 0 , old_len ) ; self . assert_in_bounds ( src . end , 0 .. old_len ) ; self . resize ( old_len + src . len ( ) , false ) ; unsafe { self . copy_within_unchecked ( src , old_len ) ; } }
Extends `self` by copying an internal range of its bit-slice as the
region to append.
Extends ` self ` by copying an internal range of its bit - slice as the region to append .
&mut self
src
R
&mut self
src
R
original
None
panics
This panics if `src` is not within `0 ..
This panics if ` src ` is not within ` 0 ..
examples
```rust
use bitvec::prelude::*.


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