Struct textwrap::WrapIter[][src]

pub struct WrapIter<'w, 'a: 'w, S: WordSplitter + 'w> { /* fields omitted */ }

An iterator over the lines of the input string which borrows a Wrapper. An instance of WrapIter is typically obtained through the Wrapper::wrap_iter method.

Each call of .next() method yields a line wrapped in Some if the input hasn’t been fully processed yet. Otherwise it returns None.

Trait Implementations

impl<'w, 'a: 'w, S: Debug + WordSplitter + 'w> Debug for WrapIter<'w, 'a, S>[src]

impl<'w, 'a: 'w, S: WordSplitter> Iterator for WrapIter<'w, 'a, S>[src]

type Item = Cow<'a, str>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'w, 'a, S> RefUnwindSafe for WrapIter<'w, 'a, S> where
    S: RefUnwindSafe

impl<'w, 'a, S> Send for WrapIter<'w, 'a, S> where
    S: Sync

impl<'w, 'a, S> Sync for WrapIter<'w, 'a, S> where
    S: Sync

impl<'w, 'a, S> Unpin for WrapIter<'w, 'a, S> where
    'a: 'w, 

impl<'w, 'a, S> UnwindSafe for WrapIter<'w, 'a, S> where
    S: RefUnwindSafe

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, 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.