# Struct collections::string::Drain 1.6.0 [−] [src]

    pub struct Drain<'a> { /* fields omitted */ }

A draining iterator for `String`.

This struct is created by the `drain` method on `String`. See its documentation for more.

## Trait Implementations

### `impl<'a> FusedIterator for Drain<'a>`
[src]

### `impl<'a> DoubleEndedIterator for Drain<'a>`
[src]

#### `fn next_back(&mut self) -> Option<char>`
[src]

### `impl<'a> Debug for Drain<'a>`
1.17.0
[src]

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

Formats the value using the given formatter.

### `impl<'a> Sync for Drain<'a>`
[src]

### `impl<'a> Iterator for Drain<'a>`
[src]

#### `type Item = char`

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

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

### `impl<'a> Send for Drain<'a>`
[src]

### `impl<'a> Drop for Drain<'a>`
[src]

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

# 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`)