LengthCheckedPlayerFeatureAdder

Trait LengthCheckedPlayerFeatureAdder 

Source
pub trait LengthCheckedPlayerFeatureAdder<F, const N: usize> {
    // Required methods
    fn get_column_headers_array(&self) -> &[&str; N];
    fn get_features(
        &self,
        player_id: &PlayerId,
        processor: &ReplayProcessor<'_>,
        frame: &Frame,
        frame_count: usize,
        current_time: f32,
    ) -> SubtrActorResult<[F; N]>;
}
Expand description

This trait is a more strict version of the PlayerFeatureAdder trait, enforcing at compile time that the number of player-specific features added is equal to the number of column headers provided. Implementations of this trait can be automatically adapted to the PlayerFeatureAdder trait using the impl_player_feature_adder! macro.

Required Methods§

Source

fn get_column_headers_array(&self) -> &[&str; N]

Source

fn get_features( &self, player_id: &PlayerId, processor: &ReplayProcessor<'_>, frame: &Frame, frame_count: usize, current_time: f32, ) -> SubtrActorResult<[F; N]>

Implementors§