I am new to rust (and this forum) and already landed on lot on useful information here via search! Thanks to all who put in the effort.
A small code-snippet that does not do anything meaningful - operates on struct and vectors to understand ownership and borrowing. Requesting members to comment on the code from various perspectives esp. if it's canonical way to to do the thing, performance & safety implications and how to improve the same.
Here is the code: https://godbolt.org/z/uPntF9