# Struct collections::vec::DrainFilter [−] [src]

    pub struct DrainFilter<'a, T, F> where
        F: FnMut(&mut T) -> bool,
        T: 'a,  { /* fields omitted */ }

🔬 This is a nightly-only experimental API. (`drain_filter` #43244)

recently added

An iterator produced by calling `drain_filter` on Vec.

## Trait Implementations

### `impl<'a, T, F> Drop for DrainFilter<'a, T, F> where
F: FnMut(&mut T) -> bool,`
[src]

#### `fn drop(&mut self)`
[src]

🔬 This is a nightly-only experimental API. (`drain_filter` #43244)

recently added

### `impl<'a, T, F> Debug for DrainFilter<'a, T, F> where
F: Debug + FnMut(&mut T) -> bool,
T: 'a + Debug,`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>`
[src]

Formats the value using the given formatter.

### `impl<'a, T, F> Iterator for DrainFilter<'a, T, F> where
F: FnMut(&mut T) -> bool,`
[src]

#### `type Item = T`

🔬 This is a nightly-only experimental API. (`drain_filter` #43244)

recently added

#### `fn next(&mut self) -> Option<T>`
[src]

🔬 This is a nightly-only experimental API. (`drain_filter` #43244)

recently added

#### `fn size_hint(&self) -> (usize, Option<usize>)`
[src]

🔬 This is a nightly-only experimental API. (`drain_filter` #43244)

recently added

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand 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`)