pub unsafe fn vector_insert_dynamic<T: Scalar, V: Vector<T, N>, const N: usize>(
    vector: V,
    index: usize,
    element: T
) -> V
Expand description

Make a copy of a vector, with a single, variably selected, component modified.

Safety

Behavior is undefined if index’s value is greater than or equal to the number of components in vector.