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
use synonym::Synonym;

#[derive(Synonym)]
pub enum Foo {}

fn main() {}