3 ms·
Rust the language doesn’t know anything about heap allocation, so in a strict sense, no. The standard library provides a number of APIs that abort on allocatio
by steveklabnik 4y ago
Rust the language doesn’t know anything about heap allocation, so in a strict sense, no.
The standard library provides a number of APIs that abort on allocation failures, yes. There are currently nightly-only APIs for some of them to return Result instead, and they’ll hit stable eventually. You could also not use them if you don’t want that behavior.