3 ms·
The unwraps are not memory unsafe, unlike avoiding bounds checks. In any case, rewriting to avoid them isn't so hard: http://huonw.github.io/2014/06/11/error-ha
by dbaupp 12y ago
The unwraps are not memory unsafe, unlike avoiding bounds checks. In any case, rewriting to avoid them isn't so hard: http://huonw.github.io/2014/06/11/error-handling-in-rust-knn-case-study.html http://huonw.github.io/2014/06/11/error-handling-in-rust-knn...
(Notably, since it's all in the types, you're guaranteed to not ignore any errors.)