Crates.io | dede |
lib.rs | dede |
version | 0.1.1 |
source | src |
created_at | 2021-04-05 14:27:05.998213 |
updated_at | 2021-04-05 14:32:03.524788 |
description | macro: derive Deref and DerefMut |
homepage | |
repository | https://github.com/djdisdo/dede-rs |
max_upload_size | |
id | 379339 |
size | 8,072 |
DErive DEref
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
}