pub trait Fold<I, F> {
fn fold(self, init: I, f: F) -> I;
}
Fold sequence by folding function
Required Methods
fn fold(self, init: I, f: F) -> I
Implementors
impl<I, F> Fold<I, F> for List<()>
impl<I, F> Fold<I, F> for Queue<()>
impl<I, X, H, T> Fold<I, X> for List<(H, List<T>)> where
List<T>: Fold<I, X>,
X: Fn<(H, I), Output = I>,
impl<I, X, H, T> Fold<I, X> for Queue<(Queue<H>, T)> where
Queue<H>: Fold<I, X>,
X: Fn<(T, I), Output = I> + Clone,