pub fn iter(&self) -> Iter<'_, T> {
        Iter {
            iter: self.data.iter(),
        }
    }
/// Returns an iterator visiting all values in the underlying vector, in
/// arbitrary order.
///
/// # Examples
///
/// Basic usage:
///
/// ```
/// use weakheap::WeakHeap;
/// let heap = WeakHeap::from(vec![1, 2, 3, 4]);
///
/// // Print 1, 2, 3, 4 in arbitrary order
/// for x in heap.iter() {
///     println!("{}", x);
/// }
///
/// assert_eq!(heap.into_sorted_vec(), vec![1, 2, 3, 4]);
/// ```
Returns an iterator visiting all values in the underlying vector, in
arbitrary order.
Returns an iterator visiting all values in the underlying vector in arbitrary order .
pub fn iter(&self) -> Iter<'_, T> {
        Iter {
            iter: self.data.iter(),
        }
    }
pub fn iter ( & self ) -> Iter < ' _ , T > { Iter { iter : self . data . iter ( ) , } }
Returns an iterator visiting all values in the underlying vector, in
arbitrary order.
Returns an iterator visiting all values in the underlying vector in arbitrary order .
&self
examples
Basic usage.

```
use weakheap::WeakHeap;
let heap = WeakHeap::from(vec![1, 2, 3, 4]).

Print 1, 2, 3, 4 in arbitrary order
for x in heap.iter() {
println!("{}", x);
}


Basic usage . ` ` ` use weakheap :: WeakHeap ; let heap = WeakHeap :: from ( vec! [ 1 2 3 4 ] ) . Print 1 2 3 4 in arbitrary order for x in heap . iter () { println! ( " {} " x ) ; }