dede 0.1.1

macro: derive Deref and DerefMut
Documentation
  • Coverage
  • 33.33%
    1 out of 3 items documented1 out of 3 items with examples
  • Size
  • Source code size: 8.07 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 287.14 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 6s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • djdisodo

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
}