[][src]Trait dispose::DisposeIteratorWith

pub trait DisposeIteratorWith<W> {
    fn dispose_iter_with(self, with: W);
}

A helper trait for iterators with items implementing DisposeWith.

This trait exists for a reason similar to DisposeIterator — namely, that implementing DisposeWith for IntoIterator causes conflicts with other implementations. More info can be found in the documentation for DisposeIterator.

Required methods

fn dispose_iter_with(self, with: W)

Dispose all items in the iterator using the provided value, consuming both.

Loading content...

Implementors

impl<W: Copy, I: IntoIterator> DisposeIteratorWith<W> for I where
    I::Item: DisposeWith<W>, 
[src]

fn dispose_iter_with(self, with: W)[src]

Dispose all items in the iterator, using copies of the provided value.

Loading content...