1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
use super::*; impl Command<Opacity> { pub fn set(self) -> Command<Opacity<With>> { self.push_str("set").transmute() } pub fn plus(self) -> Command<Opacity<With>> { self.push_str("plus").transmute() } pub fn minus(self) -> Command<Opacity<With>> { self.push_str("minus").transmute() } } impl Command<Opacity<With>> { pub fn value(self, value: f32) -> Command<Valid> { self.push_str(value.to_string()).transmute() } }