# Function ocl_core::util::vec_remove_rebuild [−] [src]

    pub fn vec_remove_rebuild<T: Clone + Copy>(
        orig_vec: &mut Vec<T>,
        remove_list: &[usize],
        rebuild_threshold: usize
    ) -> Result<(), VecRemoveRebuildError>

Batch removes elements from a vector using a list of indices to remove.

Will create a new vector and do a streamlined rebuild if `remove_list.len()` > `rebuild_threshold`. Threshold should typically be set very low (less than probably 5 or 10) as it's expensive to remove one by one.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)