#[derive(TypeAssoc)]
{
// Attributes available to this derive:
#[type_assoc]
}
Expand description
Implements traits that only have associated types.
ยงExample
#[derive(TypeAssoc)]
#[type_assoc(trait = Foo, Item = Vec<u8>)]
struct MyStruct;adds
impl Foo for MyStruct {
type Item = Vec<u8>;
}