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]

[src]

Return the value in the continue or done.

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter. Read more