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(T)Continue folding with this value
Done(T)Fold is complete and will return this value
Methods
impl<T> FoldWhile<T>[src]
pub fn into_inner(self) -> T[src]
Return the value in the continue or done.
pub fn is_done(&self) -> bool[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]
fn clone(&self) -> FoldWhile<T>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more