Function pkgcraft::dep::spec::pkgcraft_dep_set_replace
source · #[no_mangle]
pub unsafe extern "C" fn pkgcraft_dep_set_replace(
d: *mut DepSet,
key: *const DepSpec,
value: *mut DepSpec
) -> *mut DepSpecExpand description
Replace a DepSpec with another DepSpec in a DepSet, returning the replaced value.
Returns NULL on nonexistence or if the DepSet already contains the given DepSpec.
Safety
The arguments must be non-null DepSet and DepSpec pointers.