swayipc-command-builder 0.1.0

A library for building commands that can be executed by swayipc
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

impl Command<FloatingSize> {
    pub fn width(self, width: isize) -> Command<FloatingSize<X>> {
        self.push_str(width.to_string()).transmute()
    }
}

impl Command<FloatingSize<X>> {
    pub fn height(self, height: isize) -> Command<Valid> {
        self.push_char('x').push_str(height.to_string()).transmute()
    }
}