unsafe fn visit_leaves(
sexp: SEXP,
borrow: NativeBorrow,
path: &mut Vec<R_xlen_t>,
visit: &mut impl FnMut(SEXP, &[R_xlen_t], NativeBorrow) -> bool,
) -> boolExpand description
Keep each current ALTREP/list element rooted while the other argument is visited. Protection depth follows type nesting, not the number of elements.
A plain vector, the common argument, is visited here; every other shape
goes to visit_nested, kept out of line so this stays small enough to
inline into the check of a call with plain borrowed vectors.