synonym 0.1.6

Customizable derive macro to create newtypes. It peeks into the underlying type to choose which traits should be implemented.
Documentation
1
2
3
4
5
6
7
8
use synonym::Synonym;

#[derive(Synonym)]
pub struct Foo<T> {
    _foo: std::marker::PhantomData<T>
}

fn main() {}