SkillAgentSearch skills...

Progressive

A rust library for showing progress of iterators and loops.

Install / Use

/learn @palango/Progressive
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

progressive

A rust library for showing progress of iterators and loops.

Build Status Current Version License

asciicast

Documentation

Usage

To use progressive, add this to your Cargo.toml:

[dependencies]
progressive = "0.1"

And this to your crate root:

extern crate progressive;

Here's a simple example that shows how to wrap an iterator in order to get progress information:

extern crate progressive;

use progressive::progress;
use std::time::Duration;

fn main() {
    for _ in progress(0..30) {
        // do something expensive here
        std::thread::sleep(Duration::from_millis(200));
    }
}

For an example run cargo run --example basic

Related Skills

View on GitHub
GitHub Stars16
CategoryDevelopment
Updated1y ago
Forks2

Languages

Rust

Security Score

75/100

Audited on Jan 7, 2025

No findings