Enum itertools::FoldWhile [] [src]

pub enum FoldWhile<T> {
    Continue(T),
    Done(T),
}

An enum used for controlling the execution of .fold_while().

See .fold_while() for more information.

Variants

Continue folding with this value

Fold is complete and will return this value

Methods

impl<T> FoldWhile<T>
[src]

Return the value in the continue or done.

Return true if self is Done, false if it is Continue.

Trait Implementations

impl<T: Copy> Copy for FoldWhile<T>
[src]

impl<T: Clone> Clone for FoldWhile<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for FoldWhile<T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for FoldWhile<T> where
    T: Send

impl<T> Sync for FoldWhile<T> where
    T: Sync