pub struct MatchStatsCalculator { /* private fields */ }Implementations§
Source§impl MatchStatsCalculator
impl MatchStatsCalculator
pub fn new() -> Self
pub fn player_stats(&self) -> &HashMap<PlayerId, CorePlayerStats>
pub fn timeline(&self) -> &[TimelineEvent]
pub fn team_zero_stats(&self) -> CoreTeamStats
pub fn team_one_stats(&self) -> CoreTeamStats
Source§impl MatchStatsCalculator
impl MatchStatsCalculator
pub fn update_parts( &mut self, frame: &FrameInfo, gameplay: &GameplayState, ball: &BallFrameState, players: &PlayerFrameState, events: &FrameEventsState, live_play_state: &LivePlayState, ) -> SubtrActorResult<()>
Trait Implementations§
Source§impl Clone for MatchStatsCalculator
impl Clone for MatchStatsCalculator
Source§fn clone(&self) -> MatchStatsCalculator
fn clone(&self) -> MatchStatsCalculator
Returns a duplicate of the value. Read more
1.0.0 · 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 MatchStatsCalculator
impl Debug for MatchStatsCalculator
Source§impl Default for MatchStatsCalculator
impl Default for MatchStatsCalculator
Source§fn default() -> MatchStatsCalculator
fn default() -> MatchStatsCalculator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MatchStatsCalculator
impl RefUnwindSafe for MatchStatsCalculator
impl Send for MatchStatsCalculator
impl Sync for MatchStatsCalculator
impl Unpin for MatchStatsCalculator
impl UnsafeUnpin for MatchStatsCalculator
impl UnwindSafe for MatchStatsCalculator
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