Struct rayon::par_iter::reduce::ReduceWithIdentityOp [] [src]

pub struct ReduceWithIdentityOp<'r, ITEM: 'r, OP: 'r> {
    // some fields omitted
}

Methods

impl<'r, ITEM, OP> ReduceWithIdentityOp<'r, ITEM, OP>

fn new(identity: &'r ITEM, op: &'r OP) -> ReduceWithIdentityOp<'r, ITEM, OP>

Trait Implementations

impl<'r, ITEM, OP> ReduceOp<ITEM> for ReduceWithIdentityOp<'r, ITEM, OP> where OP: Fn(ITEM, ITEM) -> ITEM + Sync, ITEM: 'r + Clone + Sync

fn start_value(&self) -> ITEM

fn reduce(&self, value1: ITEM, value2: ITEM) -> ITEM