summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-js/exact-match.rs
blob: 2eacc0a358284f07a4dd63f0ddb9be58f6a8bbbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
macro_rules! imp {
    ($name:ident) => {
        pub struct $name {
            pub op: usize,
        }
        impl $name {
            pub fn op() {}
            pub fn cmp() {}
            pub fn map() {}
            pub fn pop() {}
            pub fn ptr() {}
            pub fn rpo() {}
            pub fn drop() {}
            pub fn copy() {}
            pub fn zip() {}
            pub fn sup() {}
            pub fn pa() {}
            pub fn pb() {}
            pub fn pc() {}
            pub fn pd() {}
            pub fn pe() {}
            pub fn pf() {}
            pub fn pg() {}
            pub fn ph() {}
            pub fn pi() {}
            pub fn pj() {}
            pub fn pk() {}
            pub fn pl() {}
            pub fn pm() {}
            pub fn pn() {}
            pub fn po() {}
        }
    };
    ($name:ident, $($names:ident),*) => {
        imp!($name);
        imp!($($names),*);
    };
}
macro_rules! en {
    ($name:ident) => {
        pub enum $name {
            Ptr,
            Rp,
            Rpo,
            Pt,
            Drop,
            Dr,
            Dro,
            Sup,
            Op,
            Cmp,
            Map,
            Mp,
        }
    };
    ($name:ident, $($names:ident),*) => {
        en!($name);
        en!($($names),*);
    };
}

imp!(Ot, Foo, Cmp, Map, Loc, Lac, Toc, Si, Sig, Sip, Psy, Psi, Py, Pi, Pa, Pb, Pc, Pd);
imp!(Pe, Pf, Pg, Ph, Pj, Pk, Pl, Pm, Pn, Po, Pq, Pr, Ps, Pt, Pu, Pv, Pw, Px, Pz, Ap, Bp, Cp);
imp!(Dp, Ep, Fp, Gp, Hp, Ip, Jp, Kp, Lp, Mp, Np, Op, Pp, Qp, Rp, Sp, Tp, Up, Vp, Wp, Xp, Yp, Zp);

en!(Place, Plac, Plae, Plce, Pace, Scalar, Scalr, Scaar, Sclar, Salar);

pub struct P;