pub(crate) fn retain_unskipped<T>(target: &mut Vec<T>, skipped: &[bool])
Retains the elements that are not skipped.