Skip to main content

PlayerFeatureAdder

Trait PlayerFeatureAdder 

Source
pub trait PlayerFeatureAdder<F> {
    // Required methods
    fn get_column_headers(&self) -> &[&str];
    fn add_features(
        &self,
        player_id: &PlayerId,
        processor: &ReplayProcessor<'_>,
        frame: &Frame,
        frame_count: usize,
        current_time: f32,
        vector: &mut Vec<F>,
    ) -> SubtrActorResult<()>;

    // Provided method
    fn features_added(&self) -> usize { ... }
}
Expand description

Object-safe interface for per-player feature extraction.

Required Methods§

Source

fn get_column_headers(&self) -> &[&str]

Source

fn add_features( &self, player_id: &PlayerId, processor: &ReplayProcessor<'_>, frame: &Frame, frame_count: usize, current_time: f32, vector: &mut Vec<F>, ) -> SubtrActorResult<()>

Provided Methods§

Implementations on Foreign Types§

Source§

impl<G, F, const N: usize> PlayerFeatureAdder<F> for (G, &[&str; N])

Source§

fn add_features( &self, player_id: &PlayerId, processor: &ReplayProcessor<'_>, frame: &Frame, frame_count: usize, current_time: f32, vector: &mut Vec<F>, ) -> SubtrActorResult<()>

Source§

fn get_column_headers(&self) -> &[&str]

Implementors§

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for InterpolatedPlayerRigidBodyNoVelocities<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerAnyJump<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerBallDistance<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerBoost<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerDemolishedBy<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerDodgeRefreshed<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerJump<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerLocalRelativeBallPosition<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerLocalRelativeBallVelocity<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerRelativeBallPosition<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerRelativeBallVelocity<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerRigidBody<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerRigidBodyBasis<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerRigidBodyNoVelocities<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerRigidBodyQuaternionVelocities<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for PlayerRigidBodyQuaternions<F>
where <F as TryFrom<f32>>::Error: Debug,

Source§

impl<F: TryFrom<f32>> PlayerFeatureAdder<F> for VelocityAddedPlayerRigidBodyNoVelocities<F>
where <F as TryFrom<f32>>::Error: Debug,