Iterator utility for consuming an iterator fully.

To use, either use consume_iterator::consume to get the function, or use consume_iterator::ConsumeIterator to get the convenience trait.

Documentation

This library is free software, you can use and re-use it under the terms of the MIT license. A copy of the license is provided in the source repository in the “LICENSE” file.