easy_deref 0.1.0

Derive macros for the `Deref` and `DerefMut` traits
Documentation
use easy_deref::{Deref, DerefMut};

#[derive(Deref, DerefMut)]
struct NewtypeTuple(u32);

#[derive(Deref, DerefMut)]
struct NewtypeStruct {
    msg: String,
}

#[test]
fn newtype() {
    let nt = NewtypeTuple(13);
    assert_eq!(*nt, 13);

    let mut nt = NewtypeStruct {
        msg: "Hello!".to_string(),
    };
    *nt = "Goodbye!".to_string();
    assert_eq!(*nt, String::from("Goodbye!"));
}