pub struct FoldPipeline<T: 'static, Acc, F: FnMut(Acc, T) -> Acc> { /* private fields */ }Expand description
Pipeline terminated with a fold operation.
Implementations§
Source§impl<T, Acc, F> FoldPipeline<T, Acc, F>
impl<T, Acc, F> FoldPipeline<T, Acc, F>
Sourcepub fn run(&mut self) -> Result<Acc, FabricError>
pub fn run(&mut self) -> Result<Acc, FabricError>
Run the pipeline to completion and return the fold result.
Auto Trait Implementations§
impl<T, Acc, F> Freeze for FoldPipeline<T, Acc, F>
impl<T, Acc, F> !RefUnwindSafe for FoldPipeline<T, Acc, F>
impl<T, Acc, F> !Send for FoldPipeline<T, Acc, F>
impl<T, Acc, F> !Sync for FoldPipeline<T, Acc, F>
impl<T, Acc, F> Unpin for FoldPipeline<T, Acc, F>
impl<T, Acc, F> !UnwindSafe for FoldPipeline<T, Acc, F>
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