2 releases
0.1.1 | Apr 5, 2021 |
---|---|
0.1.0 | Apr 5, 2021 |
#8 in #deref-mut
7KB
140 lines
dede
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
}
lib.rs
:
dede
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
}
Dependencies
~1.5MB
~36K SLoC