It would be useful if World had a lifetime for the data contained within.
struct World<'w> {
...
}
We could then replace the 'static requirements for handlers and components with 'w. This would allow handlers and components to safely borrow data from outside the World.
It would be useful if
World
had a lifetime for the data contained within.We could then replace the
'static
requirements for handlers and components with'w
. This would allow handlers and components to safely borrow data from outside the World.