swayipc_command_builder/commands/
floating_modifier.rs1use super::*;
2
3impl Command<FloatingModifier> {
4 pub fn none(self) -> Command<Valid> {
5 self.push_str("none").transmute()
6 }
7
8 pub fn with(self, modifier: impl AsRef<str>) -> Command<FloatingModifier<With>> {
9 self.push_str(modifier).transmute()
10 }
11}
12
13impl Command<FloatingModifier<With>> {
14 pub fn normal(self) -> Command<Valid> {
15 self.push_str("normal").transmute()
16 }
17
18 pub fn inverse(self) -> Command<Valid> {
19 self.push_str("inverse").transmute()
20 }
21}