Skip to main content

DetectorFactory

Trait DetectorFactory 

Source
pub trait DetectorFactory: Send {
    // Required methods
    fn name(&self) -> String;
    fn create(&self, n_dims: usize) -> Box<dyn Detector>;
}
Expand description

Factory for creating fresh detector instances with a specific dimensionality.

Required Methods§

Source

fn name(&self) -> String

Returns the display name of this detector.

Source

fn create(&self, n_dims: usize) -> Box<dyn Detector>

Creates a new detector instance configured for the given dimensionality.

Implementors§