bonsairobo / building-blocks

A voxel library for real-time applications.
MIT License
369 stars 30 forks source link

Experiemental #13

Closed entropylost closed 3 years ago

entropylost commented 3 years ago

Added GetOwned and ForEachOwned, which don't take a borrow, and made Get and ForEach take borrows.

bonsairobo commented 3 years ago

I know we discussed it on discord but I'll put it here for posterity. I would like to have a new GetRef trait rather than changing the existing Get trait. This prevents breaking old code as it's purely additive. I'm also not a huge fan of the name get_owned.