Struct rayon::iter::fold::FoldFolder
source · struct FoldFolder<'r, C, ID, F> {
base: C,
fold_op: &'r F,
item: ID,
}
Fields§
§base: C
§fold_op: &'r F
§item: ID
Trait Implementations§
source§impl<'r, C, ID, F, T> Folder<T> for FoldFolder<'r, C, ID, F>where
C: Folder<ID>,
F: Fn(ID, T) -> ID + Sync,
impl<'r, C, ID, F, T> Folder<T> for FoldFolder<'r, C, ID, F>where C: Folder<ID>, F: Fn(ID, T) -> ID + Sync,
§type Result = <C as Folder<ID>>::Result
type Result = <C as Folder<ID>>::Result
The type of result that will ultimately be produced by the folder.
source§fn consume_iter<I>(self, iter: I) -> Selfwhere
I: IntoIterator<Item = T>,
fn consume_iter<I>(self, iter: I) -> Selfwhere I: IntoIterator<Item = T>,
Consume items from the iterator until full, and return new sequential state. Read more
Auto Trait Implementations§
impl<'r, C, ID, F> RefUnwindSafe for FoldFolder<'r, C, ID, F>where C: RefUnwindSafe, F: RefUnwindSafe, ID: RefUnwindSafe,
impl<'r, C, ID, F> Send for FoldFolder<'r, C, ID, F>where C: Send, F: Sync, ID: Send,
impl<'r, C, ID, F> Sync for FoldFolder<'r, C, ID, F>where C: Sync, F: Sync, ID: Sync,
impl<'r, C, ID, F> Unpin for FoldFolder<'r, C, ID, F>where C: Unpin, ID: Unpin,
impl<'r, C, ID, F> UnwindSafe for FoldFolder<'r, C, ID, F>where C: UnwindSafe, F: RefUnwindSafe, ID: UnwindSafe,
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘwhere
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘwhere F: FnOnce(&Self) -> bool,
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more