lesurp / OptionalStruct

Macro copying a struct with Option fields. Useful for config initialization
Apache License 2.0
36 stars 12 forks source link

FR: Add Applyable trait back #22

Closed maxhbooth closed 1 month ago

maxhbooth commented 3 months ago

I'd like to be able to use optional_structs in generics, but since the Applyable trait got removed in https://github.com/lesurp/OptionalStruct/commit/a0ad1298273e405dddab59a78aa2ce47827c3893, it doesn't look like I can do that anymore. Would it be possible for that trait to be added back in?

lesurp commented 1 month ago

Hey, I reintroduced the trait, hopefully this covers your use case. Please note that the trait was renamed to Applicable (traded consistency for better spelling).