Expand description
§Progress Tracking for Iterative Algorithms
Pure-Rust progress tracking with no external dependencies.
§Features
ProgressBar– configurable progress display (percentage, bar, ETA)- Callback-based progress notifications
- Nested progress bars via
ProgressGroup - Rate estimation (iterations/sec)
- Pure text output (no terminal escape sequences required)
§Example
use scirs2_core::progress::{ProgressBar, ProgressStyle};
let mut pb = ProgressBar::new(100)
.with_style(ProgressStyle::Bar)
.with_prefix("Training");
for i in 0..100 {
// ... do work ...
pb.inc(1);
}
pb.finish();Structs§
- Progress
Bar - A configurable progress bar for iterative algorithms.
- Progress
Group - A group of named progress bars for tracking nested / multi-phase operations.
Enums§
- Progress
Style - Display style for the progress bar.
Type Aliases§
- Progress
Callback - A callback invoked each time progress is updated.