pub trait LengthCheckedFeatureAdder<F, const N: usize> {
// Required methods
fn get_column_headers_array(&self) -> &[&str; N];
fn get_features(
&self,
processor: &ReplayProcessor<'_>,
frame: &Frame,
frame_count: usize,
current_time: f32
) -> SubtrActorResult<[F; N]>;
}
Expand description
This trait is stricter version of the FeatureAdder
trait, enforcing at
compile time that the number of features added is equal to the number of
column headers provided. Implementations of this trait can be automatically
adapted to the FeatureAdder
trait using the impl_feature_adder!
macro.