lcode 0.10.0

An application of terminal write leetcode.一个终端刷力扣的应用
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Clone, Copy)]
#[derive(Debug)]
#[derive(Default)]
pub struct BarState {
    pub show: bool,
    pub percent: f64,
}

impl BarState {
    pub fn update(&mut self, perc: f64) {
        self.percent = perc;
    }
    pub fn close(&mut self) {
        self.show = false;
    }
}