pub fn extend_from_bitslice<T2, O2>(&mut self, other: &BitSlice<T2, O2>)
	where
		T2: BitStore,
		O2: BitOrder,
	{
		let len = self.len();
		let olen = other.len();
		self.resize(len + olen, false);
		unsafe { self.get_unchecked_mut(len ..) }.clone_from_bitslice(other);
	}
/// Appends the contents of a bit-slice to a bit-vector.
///
/// This can extend from a bit-slice of any type parameters; it is not
/// restricted to using the same parameters as `self`. However, when the
/// type parameters *do* match, it is possible for this to use a batch-copy
/// optimization to go faster than the individual-bit crawl that is
/// necessary when they differ.
///
/// Until Rust provides extensive support for specialization in trait
/// implementations, you should use this method whenever you are extending
/// from a `BitSlice` proper, and only use the general [`.extend()`]
/// implementation if you are required to use a generic `bool` source.
///
/// ## Original
///
/// [`Vec::extend_from_slice`](alloc::vec::Vec::extend_from_slice)
///
/// ## Examples
///
/// ```rust
/// use bitvec::prelude::*;
///
/// let mut bv = bitvec![0, 1];
/// bv.extend_from_bitslice(bits![0, 1, 0, 0, 1]);
/// assert_eq!(bv, bits![0, 1, 0, 1, 0, 0, 1]);
/// ```
///
/// [`.extend()`]: https://docs.rs/bitvec/latest/bitvec/vec/struct.Vec.html#impl-Extend
Appends the contents of a bit-slice to a bit-vector.
This can extend from a bit-slice of any type parameters; it is not
restricted to using the same parameters as `self`. However, when the
type parameters *do* match, it is possible for this to use a batch-copy
optimization to go faster than the individual-bit crawl that is
necessary when they differ.


Appends the contents of a bit - slice to a bit - vector . This can extend from a bit - slice of any type parameters ; it is not restricted to using the same parameters as ` self ` . However when the type parameters * do * match it is possible for this to use a batch - copy optimization to go faster than the individual - bit crawl that is necessary when they differ .
pub fn extend_from_bitslice<T2, O2>(&mut self, other: &BitSlice<T2, O2>)
	where
		T2: BitStore,
		O2: BitOrder,
	{
		let len = self.len();
		let olen = other.len();
		self.resize(len + olen, false);
		unsafe { self.get_unchecked_mut(len ..) }.clone_from_bitslice(other);
	}
pub fn extend_from_bitslice < T2 , O2 > ( & mut self , other : & BitSlice < T2 , O2 > ) where T2 : BitStore , O2 : BitOrder , { let len = self . len ( ) ; let olen = other . len ( ) ; self . resize ( len + olen , false ) ; unsafe { self . get_unchecked_mut ( len .. ) } . clone_from_bitslice ( other ) ; }
Appends the contents of a bit-slice to a bit-vector.
Appends the contents of a bit - slice to a bit - vector .
&mut self
other
&BitSlice<T2, O2>
&mut self
other
&BitSlice<T2, O2>
original
None
examples
```rust
use bitvec::prelude::*.




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