rec 0.11.0

Regular Expression Constructor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use rec::rec;

#[test]
fn char() {
    #[rec]
    const CHAR: Rec = 'a';
    assert_eq!(CHAR, "a");
}

#[test]
fn str() {
    #[rec]
    const STR: Rec = "test";
    assert_eq!(STR, "test");
}