pkgcraft_dependency_set_replace_index

Function pkgcraft_dependency_set_replace_index 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pkgcraft_dependency_set_replace_index( d: *mut DependencySet, index: usize, value: *mut Dependency, ) -> *mut Dependency
Expand description

Replace a Dependency for a given index in a DependencySet, returning the replaced value.

Returns NULL on index nonexistence or if the DependencySet already contains the given Dependency.

ยงSafety

The arguments must be valid DependencySet and Dependency pointers.