mkproj_lib/
ts.rs

1pub mod tomorrow_study {
2    //! To bring Tomorrow Study's material directly to your system
3    pub struct Content {
4        pub name: String,
5        pub author: String,
6        pub id: String,
7        pub url: String,
8    }
9
10    pub struct Category {
11        pub cont: [Content; 2],
12    }
13
14    pub fn List(cont_type: Category) {
15        let mut i = 0;
16        println!("| Name | Author | ID |");
17        while i < cont_type.cont.len() {
18            println!(
19                "| {} | {} | {} |",
20                cont_type.cont[i].name, cont_type.cont[i].author, cont_type.cont[i].id
21            );
22            i += 1;
23        }
24    }
25}