You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: main.rs
    path of file: ./repos/termimad/examples/progress
    
    the code of the file until where you have to start completion: /*!
Run with

    cargo run --example progress

Display the different steps of a pixel precise progress bar.

Note: This example is just a draft that I'll comple
    
fn main() {
    let n = 40;
    let mut markdown = String::new();
    markdown.push_str("|-:|:-:|:-:|:-:|\n");
    markdown.push_str("|iter|part|chars|bar|\n");
    markdown.push_str("|-:|-|:-:|:-|\n");
    for i in 0..=n {
        let part = (i as f32) / (n as f32);
        let pb = ProgressBar::new(part, 5);
        let char_count = pb.to_string().chars().count();
        markdown.push_str(&format!("|{}|{:1.4}|{}|{}\n", i, part, char_count, pb));
    }
    markdown.push_str("|-\n");
    print_text(&markdown);
}