derive_deref
derive_deref copied to clipboard
Support multiple fields: deref_target attribute
Use deref_target when there is more than one field to chose from (excluding any PhantomData, as before).
#[derive(Deref)]
struct StringWrapper {
additional_data: i32,
more_data: i32,
#[deref_target]
inner: String,
};
And update all dependencies to latest.
I think I addressed all your concerns. What do you think now?
@sgrif @Eijebong would one of you have time to take a look at this? Thank you
This is great! I often could use this!
@sgrif @Eijebong would one of you have time to take a look at this? Thank you
Any chance this could get merged?
(Btw this conflicts)
Fixed the conflicts by rebasing.