Trait dispose::DisposeIteratorWith [−][src]
pub trait DisposeIteratorWith<W> {
fn dispose_iter_with(self, with: W);
}Expand description
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)
fn dispose_iter_with(self, with: W)
Dispose all items in the iterator using the provided value, consuming both.