pub struct PositioningStatsAccumulator { /* private fields */ }Expand description
Rebuilds PositioningStats from the per-facet event streams plus the
continuous distance signal. This is the only accumulation path — the native
projection and event-based playback reconstruction both run it, so they
agree by construction.
Implementations§
Source§impl PositioningStatsAccumulator
impl PositioningStatsAccumulator
pub fn new() -> Self
pub fn player_stats(&self) -> &HashMap<PlayerId, PositioningStats>
pub fn team_zero_stats(&self) -> &PositioningTeamStats
pub fn team_one_stats(&self) -> &PositioningTeamStats
pub fn apply_activity_event(&mut self, event: &PlayerStateSpan<ActivityState>)
pub fn apply_field_third_event( &mut self, event: &PlayerStateSpan<FieldThirdState>, )
pub fn apply_field_half_event( &mut self, event: &PlayerStateSpan<FieldHalfState>, )
pub fn apply_ball_depth_event( &mut self, event: &PlayerStateSpan<BallDepthState>, )
pub fn apply_depth_role_event( &mut self, event: &PlayerStateSpan<DepthRoleState>, )
pub fn apply_ball_proximity_event( &mut self, event: &PlayerStateSpan<BallProximityState>, )
pub fn apply_shadow_defense_event( &mut self, event: &PlayerStateSpan<ShadowDefenseState>, )
Sourcepub fn apply_signal(
&mut self,
player: &PlayerId,
signal: &PositioningSignalSnapshot,
)
pub fn apply_signal( &mut self, player: &PlayerId, signal: &PositioningSignalSnapshot, )
Seed the distance portion of a player’s stats from the cumulative
[PositioningSignalSnapshot]. Distance is a continuous magnitude rather than an event,
so these fields are carried directly instead of being reconstructed from events.
Trait Implementations§
Source§impl Clone for PositioningStatsAccumulator
impl Clone for PositioningStatsAccumulator
Source§fn clone(&self) -> PositioningStatsAccumulator
fn clone(&self) -> PositioningStatsAccumulator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PositioningStatsAccumulator
impl Debug for PositioningStatsAccumulator
Source§impl Default for PositioningStatsAccumulator
impl Default for PositioningStatsAccumulator
Source§fn default() -> PositioningStatsAccumulator
fn default() -> PositioningStatsAccumulator
Returns the “default value” for a type. Read more
Source§impl PartialEq for PositioningStatsAccumulator
impl PartialEq for PositioningStatsAccumulator
Source§fn eq(&self, other: &PositioningStatsAccumulator) -> bool
fn eq(&self, other: &PositioningStatsAccumulator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PositioningStatsAccumulator
Auto Trait Implementations§
impl Freeze for PositioningStatsAccumulator
impl RefUnwindSafe for PositioningStatsAccumulator
impl Send for PositioningStatsAccumulator
impl Sync for PositioningStatsAccumulator
impl Unpin for PositioningStatsAccumulator
impl UnsafeUnpin for PositioningStatsAccumulator
impl UnwindSafe for PositioningStatsAccumulator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more