#[no_mangle]
pub unsafe extern "C" fn nstd_vec_push(
    vec: &mut NSTDVec,
    element: NSTDAnyConst
) -> NSTDErrorCode
Expand description

Pushes a new element onto the end of a vector.

Parameters

  • NSTDVec *const vec - The vector.

  • const NSTDAnyConst element - Pointer to the new element.

Returns

NSTDErrorCode errc - Nonzero on error.