Skip to main content

Mergeable

Trait Mergeable 

Source
pub trait Mergeable: Send + Default {
    // Required method
    fn merge(&mut self, other: Self);
}
Expand description

Trait for types that can be merged in parallel fold-reduce operations.

Implement this for custom accumulator types that need to be combined after parallel processing.

Required Methods§

Source

fn merge(&mut self, other: Self)

Merges another instance into this one.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§