Skip to main content

Module progress

Module progress 

Source
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§

ProgressBar
A configurable progress bar for iterative algorithms.
ProgressGroup
A group of named progress bars for tracking nested / multi-phase operations.

Enums§

ProgressStyle
Display style for the progress bar.

Type Aliases§

ProgressCallback
A callback invoked each time progress is updated.