collections::str::Lines - Rust
Description: API documentation for the Rust `Lines` struct in crate `collections`.
Keywords: rust, rustlang, rust-lang, Lines

# Struct collections::str::Lines 1.0.0 [−] [src]

    pub struct Lines<'a>(_);

An iterator over the lines of a string, as string slices.

This struct is created with the `lines` method on `str`. See its documentation for more.

## Trait Implementations

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

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

Formats the value using the given formatter.

### `impl<'a> Clone for Lines<'a>`
[src]

#### `fn clone(&self) -> Lines<'a>`
[src]

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

#### `type Item = &'a str`

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

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

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

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

#### `fn next_back(&mut self) -> Option<&'a str>`
[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`)