1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
pub struct Layout { pub spinner_frame: usize, pub spinner_timer_scheduled: bool, } impl Layout { pub fn new() -> Self { Self { spinner_frame: 0, spinner_timer_scheduled: false, } } } impl Default for Layout { fn default() -> Self { Self::new() } }