feat: keybinds for toggling displays
This commit is contained in:
parent
a689366324
commit
e310ca570b
4 changed files with 101 additions and 26 deletions
9
src/utils.rs
Normal file
9
src/utils.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
pub trait Toggle {
|
||||
fn toggle(&mut self);
|
||||
}
|
||||
|
||||
impl Toggle for bool {
|
||||
fn toggle(&mut self) {
|
||||
*self = !*self
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue