|
|
|
|
|
by Rustwerks
1267 days ago
|
|
I just went through all of this when building a raytracer. * Sprinkling & around everything in math expressions does make them ugly. Maybe rust needs an asBorrow or similar? * If you inline everything then the speed is the same. * Link time optimizations are also an easy win. https://github.com/mcallahan/lightray |
|
FWIW, the `Borrow`, `AsRef`, and `Deref` traits all exist to support different variants of this.