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§
Sourcefn set_parallel(&mut self, parallel: bool)
fn set_parallel(&mut self, parallel: bool)
Enable or disable parallel processing
Sourcefn is_parallel(&self) -> bool
fn is_parallel(&self) -> bool
Check if parallel processing is enabled
Sourcefn set_num_threads(&mut self, num_threads: usize)
fn set_num_threads(&mut self, num_threads: usize)
Set the number of threads for parallel processing
Sourcefn num_threads(&self) -> usize
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".