Crate with_capacity_safe

Source

Functionsยง

vec_into_raw_parts
A copy of Vec::into_raw_parts which is currently unstable. The documentation below is also copy-pasted.
vec_with_capacity_safe
Vec::with_capacity(capacity) panics/aborts when the capacity is too large. This is a safer alternative which reports Error using try_reserve_exact.