prost-wkt
prost-wkt copied to clipboard
Change parameter type of Any::try_pack.
Implements #48.
This is a breaking change, which might be undesired.
A possible workaround would be to implement a new function called try_pack_by_ref(&T) alongside with current try_pack(T).
Many thanks for putting together this PR! I will review and see what the best way forward is. I agree it might be best to avoid a breaking change and have a new method try_unpack_by_ref or something similar.