pub struct DualFold<L, S1, S2, F1, F2>{ /* private fields */ }Expand description
Dual fold — run two independent folds over the same entries sequentially.
Implementations§
Source§impl<L, S1, S2, F1, F2> DualFold<L, S1, S2, F1, F2>
impl<L, S1, S2, F1, F2> DualFold<L, S1, S2, F1, F2>
Sourcepub fn execute<'a, I>(
&self,
entries: I,
context: &FoldContext,
) -> (FoldOutcome<S1>, FoldOutcome<S2>)
pub fn execute<'a, I>( &self, entries: I, context: &FoldContext, ) -> (FoldOutcome<S1>, FoldOutcome<S2>)
Execute both folds over the same entries.
Auto Trait Implementations§
impl<L, S1, S2, F1, F2> Freeze for DualFold<L, S1, S2, F1, F2>
impl<L, S1, S2, F1, F2> RefUnwindSafe for DualFold<L, S1, S2, F1, F2>
impl<L, S1, S2, F1, F2> Send for DualFold<L, S1, S2, F1, F2>
impl<L, S1, S2, F1, F2> Sync for DualFold<L, S1, S2, F1, F2>
impl<L, S1, S2, F1, F2> Unpin for DualFold<L, S1, S2, F1, F2>
impl<L, S1, S2, F1, F2> UnsafeUnpin for DualFold<L, S1, S2, F1, F2>where
F1: UnsafeUnpin,
F2: UnsafeUnpin,
impl<L, S1, S2, F1, F2> UnwindSafe for DualFold<L, S1, S2, F1, F2>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more