锈棒
生锈的进度条集
extern crate rustbar;
use std :: thread :: sleep_ms;
use rustbar :: rustbars :: ProgressBar;
pub fn main (){
let mut pbar = rustbar :: rustbars :: PercentageProgressBar :: new ();
println! ( " \n PercentageProgressBar demo" );
for idx in 0 .. 101 {
pbar. set_value (idx);
pbar. set_msg ( "Calculating..." );
pbar. render (). unwrap ();
sleep_ms