Function pkgcraft::pkg::pkgcraft_pkg_cmp
source · #[no_mangle]
pub unsafe extern "C" fn pkgcraft_pkg_cmp<'a>(
p1: *mut Pkg<'a>,
p2: *mut Pkg<'a>,
) -> c_intExpand description
Compare two packages returning -1, 0, or 1 if the first package is less than, equal to, or greater than the second package, respectively.
§Safety
The arguments must be non-null Pkg pointers.