pub trait FactorKernel {
// Required methods
fn param_count(&self) -> usize;
fn build(&self, params: &[f32]) -> Result<DiscreteFactor, String>;
}pub trait FactorKernel {
// Required methods
fn param_count(&self) -> usize;
fn build(&self, params: &[f32]) -> Result<DiscreteFactor, String>;
}