nstd_vec_shrink

Function nstd_vec_shrink 

Source
#[unsafe(no_mangle)]
pub extern "C" fn nstd_vec_shrink( vec: &mut NSTDVec<'_>, ) -> NSTDAllocError
Available on crate feature 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.