4 ms·
There are new methods returning a Result instead of panicking, slowly being implemented for all allocating collections in the standard library. see https://git
by littlestymaar 6y ago
There are new methods returning a Result instead of panicking, slowly being implemented for all allocating collections in the standard library.
see https://github.com/rust-lang/rust/issues/48043 https://github.com/rust-lang/rust/issues/48043 and https://github.com/rust-lang/rust/pull/80310 https://github.com/rust-lang/rust/pull/80310
- cies 6y agoLike what was mentioned in the linked thread, the "try_*" functions. This is what Zig has as default behavior.