Skip to main content

for_each_conflict

Function for_each_conflict 

Source
unsafe fn for_each_conflict<const N: usize>(
    args: &[(SEXP, &str); N],
    borrows: &[Option<NativeBorrow>; N],
    found: impl FnMut(usize, usize),
)
Expand description

Call found(i, j) (i <= j) for every argument pair whose borrows alias, an argument with itself included.

ยงSafety

As for assert_no_aliases.