Crate with_capacity_safe[][src]

Functions

A copy of Vec::into_raw_parts which is currently unstable. The documentation below is also copy-pasted.

Vec::with_capacity(capacity) panics/aborts when the capacity is too large. This is a safer alternative which reports Error using try_reserve_exact.