Re:The Rust Performance Book
by staticassertion on Saturday November 21, 2020 @06:42PM
(#25173580)
A nice method I've found (and seems popular) is to use unsafe but use a debug_assert!. That way your tests will fail loudly if you hit the assertion, but you won't take a hit in production.
[ Parent
| on HN ]
There are no comments on this comment yet.