You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust unfortunately allows runtime errors / panics for missing vector indexes when doing my_vec[index] . Doing my_vec.get(index) returns an Option and is safer to use and deal with at compile time.
I'll have a PR for this shortly.
The text was updated successfully, but these errors were encountered:
Rust unfortunately allows runtime errors / panics for missing vector indexes when doing
my_vec[index]
. Doingmy_vec.get(index)
returns anOption
and is safer to use and deal with at compile time.I'll have a PR for this shortly.
The text was updated successfully, but these errors were encountered: