fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I) {
        for x in iter {
            self.push(x);
        }
    }
/// Extend WeakHeap with elements from the iterator.
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// use weakheap::WeakHeap;
///
/// let mut heap = WeakHeap::new();
/// heap.extend(vec![7, 1, 0, 4, 5, 3]);
/// assert_eq!(heap.into_sorted_vec(), [0, 1, 3, 4, 5, 7]);
/// ```
Extend WeakHeap with elements from the iterator.
Extend WeakHeap with elements from the iterator .
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I) {
        for x in iter {
            self.push(x);
        }
    }
fn extend < I : IntoIterator < Item = T > > ( & mut self , iter : I ) { for x in iter { self . push ( x ) ; } }
Extend WeakHeap with elements from the iterator.
Extend WeakHeap with elements from the iterator .
&mut self
iter
I
examples
Basic usage.

```
use weakheap::WeakHeap.


Basic usage . ` ` ` use weakheap :: WeakHeap .