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
I do not believe there is a syntax available in the template syntax to pattern match on remaining values, like how you can do with structs in regular Rust:
MyStruct{ foo, bar, ...} = my_struct
This would help in situations with large structs that are reused in multiple templates. One situation I'm dealing with now is that I send the same session context variable to all my templates, where each of them need just a few of the values. Right now, I need to update all templates if I add any new values to the session context.
I would be interested in writing a patch for this, however I can't find the time right now. I'm planning to pick this up myself later if it hasn't been done already.
The text was updated successfully, but these errors were encountered:
I do not believe there is a syntax available in the template syntax to pattern match on remaining values, like how you can do with structs in regular Rust:
This would help in situations with large structs that are reused in multiple templates. One situation I'm dealing with now is that I send the same session context variable to all my templates, where each of them need just a few of the values. Right now, I need to update all templates if I add any new values to the session context.
I would be interested in writing a patch for this, however I can't find the time right now. I'm planning to pick this up myself later if it hasn't been done already.
The text was updated successfully, but these errors were encountered: