[][src]Struct seq_io::LineSearchIter

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

Iterator over the lines of a text slice. The line endings are searched in the text while iterating, except for the case where it is known that there is only one line.

Iterating > 1 line is thus slow compared to LinePositionIter. In case, of a single line, the two iterators should be equally fast.

Implementations

impl<'a> LineSearchIter<'a>[src]

pub fn new(text: &'a [u8], one_line: bool) -> Self[src]

Trait Implementations

impl<'a> Debug for LineSearchIter<'a>[src]

impl<'a> DoubleEndedIterator for LineSearchIter<'a>[src]

impl<'a> Iterator for LineSearchIter<'a>[src]

type Item = &'a [u8]

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a> RefUnwindSafe for LineSearchIter<'a>

impl<'a> Send for LineSearchIter<'a>

impl<'a> Sync for LineSearchIter<'a>

impl<'a> Unpin for LineSearchIter<'a>

impl<'a> UnwindSafe for LineSearchIter<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.