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