You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With didc bind -t the generated Rust code for inline records uses a custom named struct, so that the Rust function actually references a named struct instead of an anonymous struct in the param. It would be great if the same thing could be done for tuple structs. This is breaking my code because of some traits that would be hard to derive for a heterogeneous tuple struct. If tuple structs and regular structs were treated the same by didc bind -t then my code should automatically work.
The text was updated successfully, but these errors were encountered:
lastmjs
changed the title
didc bind create named struct for inline tuple record params
didc bind -t create named struct for inline tuple record params
May 6, 2022
With
didc bind -t
the generated Rust code for inline records uses a custom named struct, so that the Rust function actually references a named struct instead of an anonymous struct in the param. It would be great if the same thing could be done for tuple structs. This is breaking my code because of some traits that would be hard to derive for a heterogeneous tuple struct. If tuple structs and regular structs were treated the same bydidc bind -t
then my code should automatically work.The text was updated successfully, but these errors were encountered: