FeatureValidator

Trait FeatureValidator 

Source
pub trait FeatureValidator<const N_FEATURES: usize> {
    // Required methods
    fn validate_feature_count() -> Result<(), SklearsError>;
    fn memory_requirements() -> MemoryRequirements;
    fn computational_complexity() -> ComputationalComplexity;
}
Expand description

Compile-time feature validation

Required Methods§

Source

fn validate_feature_count() -> Result<(), SklearsError>

Validate that the feature count is appropriate for the algorithm

Source

fn memory_requirements() -> MemoryRequirements

Get memory requirements for this feature count

Source

fn computational_complexity() -> ComputationalComplexity

Get computational complexity estimate

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.

Implementations on Foreign Types§

Source§

impl<const N_FEATURES: usize> FeatureValidator<N_FEATURES> for ()
where [(); N_FEATURES]:,

Feature validation for small problems

Implementors§