generic_trait_alias
Holds a proc_macro_attribute which can be used to create type aliases with a more inutive syntax (similar to the way struct aliases are handled)
Install
or
Examples
use trait_alias;
// Define internal trait
// Creates a pub trait alias with internal and external traits
pub type X = Z + Clone;
// Creates a private trait alias with internal and external traits
type A = Z + Clone;
// Only works with public alias x
// Private functions can work with public or private alias
Limitations
Currently does not support combined generic traits