Open Luro02 opened 4 years ago
It is not possible for a proc_macro to see, which methods are implemented for a struct, so they have to be specified with an attribute
For example the attribute could look like this;
#[shorthand(enable(forward(field = "field", functions = "field", "field_mut", attributes = [])))]
Another useful feature would be conditions; "Forward X only if Y is enabled and Z is disabled."
It is not possible for a proc_macro to see, which methods are implemented for a struct, so they have to be specified with an attribute
For example the attribute could look like this;
Another useful feature would be conditions; "Forward X only if Y is enabled and Z is disabled."