easy_deref
Derive macros for the Deref and DerefMut traits that support multi-field structs.
Example
use ;
; // Automatically dereferences to `u32`
let nt = Newtype;
assert_eq!;
struct<'a, T> ComplexStruct
let value = ComplexStruct ;
assert_eq!;
*value = vec!;
assert_eq!;
License
Licensed under either:
at your option.
Why use easy_deref
With many crates for deriving the Deref and DerefMut traits available, you might be wondering, why use easy_deref?
easy_deref is the only crate that allows you to select a field to dereference, allowing support for multi-field structs.