Enum FoldWhile
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: Self) -> TReturn the value in the continue or done.
fn is_done(self: &Self) -> boolReturn true if
selfisDone, false if it isContinue.
impl<T> Any for FoldWhile<T>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for FoldWhile<T>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for FoldWhile<T>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for FoldWhile<T>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> Freeze for FoldWhile<T>
impl<T> From for FoldWhile<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> RefUnwindSafe for FoldWhile<T>
impl<T> Send for FoldWhile<T>
impl<T> StructuralPartialEq for FoldWhile<T>
impl<T> Sync for FoldWhile<T>
impl<T> ToOwned for FoldWhile<T>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> Unpin for FoldWhile<T>
impl<T> UnwindSafe for FoldWhile<T>
impl<T, U> Into for FoldWhile<T>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for FoldWhile<T>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for FoldWhile<T>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>
impl<T: $crate::clone::Clone> Clone for FoldWhile<T>
fn clone(self: &Self) -> FoldWhile<T>
impl<T: $crate::cmp::Eq> Eq for FoldWhile<T>
impl<T: $crate::cmp::PartialEq> PartialEq for FoldWhile<T>
fn eq(self: &Self, other: &FoldWhile<T>) -> bool
impl<T: $crate::fmt::Debug> Debug for FoldWhile<T>
fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result