formations 0.1.0

A terminal forms/multiple choice library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use formations::FormElement;

fn main() -> std::io::Result<()> {
    let mut form: Vec<FormElement<_, bool>> = Vec::new();
    for i in 0..100_usize {
        form.push(FormElement::new(
            char::from(65 + (i % 26_usize) as u8),
            None,
        ));
    }
    println!("{}", FormElement::run(&form)?.name);

    Ok(())
}