pub unsafe extern "C" fn CSTL_vector_truncate(
instance: CSTL_VectorRef,
type_: CSTL_Type,
drop: CSTL_DropTypeCRef,
new_size: usize,
)Expand description
Truncates the vector to contain new_size elements, removing any excess.
Has no effect if new_size >= CSTL_vector_size(instance, type).
If new_size > CSTL_vector_max_size(type) (vector too long)
this function has no effect and returns false, otherwise it returns true.