Rust Iterator Logging
This project provides a library for logging the progress of iterations in Rust, both for sequential and parallel iterations.
Installation
Add the following line to your Cargo.toml file to include the library as a dependency:
[]
= { = "." }
Usage
Sequential Iteration
Use the log_progress method to log the progress of a sequential iteration:
use LogProgressExt;
let x: = .collect;
let _y: = x.iter.log_progress.map.collect;
Parallel Iteration
Use the log_progress method to log the progress of a parallel iteration:
use LogProgressParExt;
use *;
let x: = .collect;
let _z: = x.par_iter.log_progress.map.collect;
More examples
See the main.rs file for a complete example of how to use the library for both sequential and parallel iterations, including performance testing with and without logging.
License
This project is licensed under the MIT License.