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]
impl<T> FoldWhile<T>
pub fn into_inner(self) -> T
[src]
pub fn into_inner(self) -> T
Return the value in the continue or done.
pub fn is_done(&self) -> bool
[src]
pub fn is_done(&self) -> bool
Return true if self
is Done
, false if it is Continue
.
Trait Implementations
impl<T: Copy> Copy for FoldWhile<T>
[src]
impl<T: Copy> Copy for FoldWhile<T>
impl<T: Clone> Clone for FoldWhile<T>
[src]
impl<T: Clone> Clone for FoldWhile<T>
fn clone(&self) -> FoldWhile<T>
[src]
fn clone(&self) -> FoldWhile<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for FoldWhile<T>
[src]
impl<T: Debug> Debug for FoldWhile<T>