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§

source§

impl<F: TryFrom<f32>> LengthCheckedPlayerFeatureAdder<F, {count_exprs!($( $column_names ),*)}> for InterpolatedPlayerRigidBodyNoVelocities<F>where <F as TryFrom<f32>>::Error: Debug,

source§

impl<F: TryFrom<f32>> LengthCheckedPlayerFeatureAdder<F, {count_exprs!($( $column_names ),*)}> for PlayerAnyJump<F>where <F as TryFrom<f32>>::Error: Debug,

source§

impl<F: TryFrom<f32>> LengthCheckedPlayerFeatureAdder<F, {count_exprs!($( $column_names ),*)}> for PlayerBoost<F>where <F as TryFrom<f32>>::Error: Debug,

source§

impl<F: TryFrom<f32>> LengthCheckedPlayerFeatureAdder<F, {count_exprs!($( $column_names ),*)}> for PlayerDemolishedBy<F>where <F as TryFrom<f32>>::Error: Debug,

source§

impl<F: TryFrom<f32>> LengthCheckedPlayerFeatureAdder<F, {count_exprs!($( $column_names ),*)}> for PlayerJump<F>where <F as TryFrom<f32>>::Error: Debug,

source§

impl<F: TryFrom<f32>> LengthCheckedPlayerFeatureAdder<F, {count_exprs!($( $column_names ),*)}> for PlayerRigidBody<F>where <F as TryFrom<f32>>::Error: Debug,

source§

impl<F: TryFrom<f32>> LengthCheckedPlayerFeatureAdder<F, {count_exprs!($( $column_names ),*)}> for PlayerRigidBodyNoVelocities<F>where <F as TryFrom<f32>>::Error: Debug,

source§

impl<F: TryFrom<f32>> LengthCheckedPlayerFeatureAdder<F, {count_exprs!($( $column_names ),*)}> for VelocityAddedPlayerRigidBodyNoVelocities<F>where <F as TryFrom<f32>>::Error: Debug,