pub fn extend_back<I>(&mut self, iter: I)
    where
        I: IntoIterator<Item = A::Item>,
    {
        for element in iter.into_iter() {
            self.push_back(element);
        }
    }
/// Extend deque from back with the contents of an iterator.
///
/// Extracts all items from iterator and kicks out the frontmost element if necessary.
///
/// # Examples
///
/// ```
/// // [_, _, _, _, _, _, _] <-(+)- [1, 2, 3] => [_, _, _, _, 1, 2, 3]
/// // [_, _, _, _, 1, 2, 3] <-(+)- [4, 5, 6] => [_, 1, 2, 3, 4, 5, 6]
/// // [_, 1, 2, 3, 4, 5, 6] <-(+)- [7, 8, 9] => [3, 4, 5, 6, 7, 8, 9]
///
/// use arraydeque::{ArrayDeque, Wrapping};
///
/// let mut buf: ArrayDeque<[_; 7], Wrapping> = ArrayDeque::new();
///
/// buf.extend_back(vec![1, 2, 3].into_iter());
/// buf.extend_back(vec![4, 5, 6].into_iter());
///
/// assert_eq!(buf.len(), 6);
///
/// // max capacity reached
/// buf.extend_back(vec![7, 8, 9].into_iter());
///
/// assert_eq!(buf.len(), 7);
/// assert_eq!(buf, vec![3, 4, 5, 6, 7, 8, 9].into());
/// ```
Extend deque from back with the contents of an iterator.
Extracts all items from iterator and kicks out the frontmost element if necessary.
Extend deque from back with the contents of an iterator . Extracts all items from iterator and kicks out the frontmost element if necessary .
pub fn extend_back<I>(&mut self, iter: I)
    where
        I: IntoIterator<Item = A::Item>,
    {
        for element in iter.into_iter() {
            self.push_back(element);
        }
    }
pub fn extend_back < I > ( & mut self , iter : I ) where I : IntoIterator < Item = A :: Item > , { for element in iter . into_iter ( ) { self . push_back ( element ) ; } }
Extend deque from back with the contents of an iterator.
Extend deque from back with the contents of an iterator .
&mut self
iter
I
examples


use arraydeque::{ArrayDeque, Wrapping}.

let mut buf: ArrayDeque<[_; 7], Wrapping> = ArrayDeque::new().





max capacity reached
buf.extend_back(vec![7, 8, 9].into_iter()).


use arraydeque :: { ArrayDeque Wrapping } . let mut buf : ArrayDeque< [ _ ; 7 ] Wrapping > = ArrayDeque :: new () . max capacity reached buf . extend_back ( vec! [ 7 8 9 ] . into_iter () ) .