traitful 0.3.0

A collection of helper macros for trait patterns
Documentation
1
2
3
4
5
6
7
8
use traitful::seal;

pub struct Newtype<T>(T);

impl<T> Generic<T> for Newtype<T> {}

#[seal(Newtype<T>)]
pub trait Generic<T> {}