Enum FoldWhile
pub enum FoldWhile<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
Implementations
impl<T> FoldWhile<T>
fn into_inner(self) -> TReturn the value in the continue or done.
fn is_done(&self) -> boolReturn true if
selfisDone, false if it isContinue.
Trait Implementations
impl<T: Clone> Clone for FoldWhile<T>
fn clone(&self) -> Self
impl<T: Copy> Copy for FoldWhile<T>
impl<T: Debug> Debug for FoldWhile<T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Eq> Eq for FoldWhile<T>
impl<T: PartialEq> PartialEq for FoldWhile<T>
fn eq(&self, other: &Self) -> bool