swayipc_command_builder/commands/
unbindswitch.rs

1use super::*;
2
3impl Command<Unbindswitch> {
4    pub fn switch(self, switch: impl AsRef<str>) -> Command<Unbindswitch<With>> {
5        self.push_str(switch).transmute()
6    }
7
8    pub fn locked(self) -> Command<Unbindswitch> {
9        self.push_str("--locked").transmute()
10    }
11
12    pub fn no_warn(self) -> Command<Unbindswitch> {
13        self.push_str("--no-warn").transmute()
14    }
15
16    pub fn reload(self) -> Command<Unbindswitch> {
17        self.push_str("--reload").transmute()
18    }
19}
20
21impl Command<Unbindswitch<With>> {
22    pub fn state(self, state: impl AsRef<str>) -> Command<Valid> {
23        self.push_char(':')
24            .push_str_without_space(state)
25            .transmute()
26    }
27}