Function nstd_sys::vec::nstd_vec_shrink

source ·
#[no_mangle]
pub extern "C" fn nstd_vec_shrink(vec: &mut NSTDVec) -> NSTDAllocError
Available on crate feature nstd_vec only.
Expand description

Decreases a vector’s capacity to match it’s length.

Parameters:

  • NSTDVec *vec - The vector.

Returns

NSTDAllocError errc - The allocation operation error code.