penrose_proc 0.1.3

proc-macros for the Penrose tiling window manager library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// The stub trait is only visible in tests when the arg is passed
use penrose_proc::stubbed_companion_trait;

#[stubbed_companion_trait(test_only = "true")]
pub trait Foo {
    #[stub("red")]
    fn color(&self, x: u32) -> &str;
}

struct MyStruct;
impl StubFoo for MyStruct {}

fn main() {}