MapReduce

Trait MapReduce 

Source
pub trait MapReduce<T, Params = ()>:
    Send
    + Sync
    + Debug
    + DynClone
where Params: Copy + Send + Sync + Debug + 'static + Default, T: Copy + Debug + PartialEq + Send + Sync,
{ // Required methods fn name(&self) -> &'static str; fn run_with_params(&self, vec: &mut [T], params: Params) -> Result<T, Error>; // Provided method fn run(&self, vec: &mut [T]) -> Result<T, Error> { ... } }

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn run_with_params(&self, vec: &mut [T], params: Params) -> Result<T, Error>

Provided Methods§

Source

fn run(&self, vec: &mut [T]) -> Result<T, Error>

Trait Implementations§

Source§

impl<'clone, T, Params> Clone for Box<dyn MapReduce<T, Params> + 'clone>
where T: Copy, Params: Copy,

Source§

fn clone(&self) -> Box<dyn MapReduce<T, Params> + 'clone>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone, T, Params> Clone for Box<dyn MapReduce<T, Params> + Send + 'clone>
where T: Copy, Params: Copy,

Source§

fn clone(&self) -> Box<dyn MapReduce<T, Params> + Send + 'clone>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone, T, Params> Clone for Box<dyn MapReduce<T, Params> + Send + Sync + 'clone>
where T: Copy, Params: Copy,

Source§

fn clone(&self) -> Box<dyn MapReduce<T, Params> + Send + Sync + 'clone>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'clone, T, Params> Clone for Box<dyn MapReduce<T, Params> + Sync + 'clone>
where T: Copy, Params: Copy,

Source§

fn clone(&self) -> Box<dyn MapReduce<T, Params> + Sync + 'clone>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementors§

Source§

impl<K, T, Params> MapReduce<T, Params> for MapReduceImpl<K, T, Params>
where T: LADatum, Params: Copy + Send + Sync + Debug + 'static + Default, K: MapReduceKer<T, Params> + Clone,