dede 0.1.1

macro: derive Deref and DerefMut
Documentation

dede

DErive DEref

crates.io

there were already some macros for deriving Deref but wasn't flexible enough

this macro supports structs with generic types and tuple structs

use dede::*;

#[derive(Deref, DerefMut)]
pub struct Foo {
	#[deref]
	bar: usize
}