dede

Crates.iodede
lib.rsdede
version0.1.1
sourcesrc
created_at2021-04-05 14:27:05.998213
updated_at2021-04-05 14:32:03.524788
descriptionmacro: derive Deref and DerefMut
homepage
repositoryhttps://github.com/djdisdo/dede-rs
max_upload_size
id379339
size8,072
sodo (djdisodo)

documentation

https://docs.rs/dede

README

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
}
Commit count: 0

cargo fmt