Skip to main content

ParallelClusteringAlgorithm

Trait ParallelClusteringAlgorithm 

Source
pub trait ParallelClusteringAlgorithm: ClusteringAlgorithm {
    // Required methods
    fn set_parallel(&mut self, parallel: bool);
    fn is_parallel(&self) -> bool;
    fn set_num_threads(&mut self, num_threads: usize);
    fn num_threads(&self) -> usize;
}
Expand description

Trait for clustering algorithms that support parallel processing

Required Methods§

Source

fn set_parallel(&mut self, parallel: bool)

Enable or disable parallel processing

Source

fn is_parallel(&self) -> bool

Check if parallel processing is enabled

Source

fn set_num_threads(&mut self, num_threads: usize)

Set the number of threads for parallel processing

Source

fn num_threads(&self) -> usize

Get the number of threads used for parallel processing

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§