duplicate 0.2.3

The attribute macro `duplicate` can duplicate an item with variable substitution.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use duplicate::duplicate;
pub struct SomeName();
pub struct SomeName(SomeMember);
pub struct SomeName(SomeMember);
pub struct SomeName2(SomeMember2);
mod mod1 {
    use super::*;
    pub struct SomeName(SomeMember);
    pub struct SomeName2(SomeMember2);
}
mod mod2 {
    use super::*;
    pub struct SomeName(SomeMember);
    pub struct SomeName2(SomeMember2);
}