4 ms·
Aren't bounds checks and unwinding examples of non-free safety code in Rust?
by MichaelGG 12y ago
Aren't bounds checks and unwinding examples of non-free safety code in Rust?
- kibwen 12y agoUnwinding is only potentially unsafe if you're already using `unsafe` blocks. If you're sticking to safe Rust, unwinding can't cause memory unsafety.
- steveklabnik 12y agoYou can largely eliminate bounds checks by using iterators.