/// Extend the ArrayVec with clones of elements from the slice;
/// the length of the slice must be <= the remaining capacity in the arrayvec.
Extend the ArrayVec with clones of elements from the slice;
the length of the slice must be <= the remaining capacity in the arrayvec.
Extend the ArrayVec with clones of elements from the slice ; the length of the slice must be < = the remaining capacity in the arrayvec .
pub(crate) fn extend_from_slice(&mut self, slice: &[T])
        where T: Clone
    {
        let take = self.capacity() - self.len();
        debug_assert!(slice.len() <= take);
        unsafe {
            let slice = if take < slice.len() { &slice[..take] } else { slice };
            self.extend_from_iter::<_, false>(slice.iter().cloned());
        }
    }
pub ( crate ) fn extend_from_slice ( & mut self , slice : & [ T ] ) where T : Clone { let take = self . capacity ( ) - self . len ( ) ; debug_assert ! ( slice len ( ) take ) ; unsafe { let slice = if take < slice . len ( ) { & slice [ .. take ] } else { slice } ; self . extend_from_iter :: < _ , false > ( slice . iter ( ) . cloned ( ) ) ; } }
Extend the ArrayVec with clones of elements from the slice;
the length of the slice must be <= the remaining capacity in the arrayvec.
Extend the ArrayVec with clones of elements from the slice ; the length of the slice must be < = the remaining capacity in the arrayvec .
&mut self
slice
&[T]