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
14
15
use super::*;

impl Command<DefaultBorder> {
    pub fn normal(self) -> Command<Valid> {
        self.push_str("normal").transmute()
    }

    pub fn none(self) -> Command<Valid> {
        self.push_str("none").transmute()
    }

    pub fn pixel(self, px: usize) -> Command<Valid> {
        self.push_str("pixel").push_str(px.to_string()).transmute()
    }
}