pub struct BallCarryCalculator { /* private fields */ }Implementations§
Source§impl BallCarryCalculator
impl BallCarryCalculator
pub fn new() -> Self
pub fn player_stats(&self) -> &HashMap<PlayerId, BallCarryStats>
pub fn team_zero_stats(&self) -> &BallCarryStats
pub fn team_one_stats(&self) -> &BallCarryStats
pub fn carry_events(&self) -> &[BallCarryEvent]
pub fn update( &mut self, frame: &FrameInfo, ball: &BallFrameState, players: &PlayerFrameState, touch_state: &TouchState, live_play_state: &LivePlayState, ) -> SubtrActorResult<()>
pub fn finish_calculation(&mut self) -> SubtrActorResult<()>
Trait Implementations§
Source§impl Clone for BallCarryCalculator
impl Clone for BallCarryCalculator
Source§fn clone(&self) -> BallCarryCalculator
fn clone(&self) -> BallCarryCalculator
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 BallCarryCalculator
impl Debug for BallCarryCalculator
Source§impl Default for BallCarryCalculator
impl Default for BallCarryCalculator
Source§fn default() -> BallCarryCalculator
fn default() -> BallCarryCalculator
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BallCarryCalculator
impl RefUnwindSafe for BallCarryCalculator
impl Send for BallCarryCalculator
impl Sync for BallCarryCalculator
impl Unpin for BallCarryCalculator
impl UnsafeUnpin for BallCarryCalculator
impl UnwindSafe for BallCarryCalculator
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