Struct std::str::LinesStable
[-] [+]
[src]
pub struct Lines<'a> { // some fields omitted }
An iterator over the lines of a string, separated by \n
.
pub struct Lines<'a> { // some fields omitted }
An iterator over the lines of a string, separated by \n
.
impl<'a> Iterator for Lines<'a>
type Item = &'a str
fn next(&mut self) -> Option<&'a str>
fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
impl<'a> DoubleEndedIterator for Lines<'a>
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
, typedef
(or
tdef
).