Function nstd_sys::vec::nstd_vec_shrink
source · #[no_mangle]
pub extern "C" fn nstd_vec_shrink(
vec: &mut NSTDVec<'_>
) -> NSTDAllocErrorAvailable 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.