df_excel/
lib.rs

1#[derive(Clone, Debug)]
2pub struct Head {
3    pub field: String,
4    pub title: String,
5    pub note: String,
6    pub width: i32,
7}
8
9impl Head {
10    pub fn new(field: &str, title: &str, note: &str, mut width: i32) -> Self {
11        if width == 0 {
12            width = 10;
13        }
14        Self {
15            field: field.to_string(),
16            title: title.to_string(),
17            note: note.to_string(),
18            width,
19        }
20    }
21}
22
23pub mod write;
24pub mod read;