|
|
|
|
|
by Chai-T-Rex
572 days ago
|
|
If a Rust function can panic, there's generally a non-panicking alternative. For example, `Vec` indexing has `vec[n]` as the panicking version and `vec.get(n)` as the version that can return `None` when there's nothing at that index. |
|