pub struct BallHalfCalculator { /* private fields */ }Expand description
Tracks which half of the field the ball is in over time.
Implementations§
Source§impl BallHalfCalculator
impl BallHalfCalculator
pub fn new() -> Self
pub fn with_config(config: BallHalfCalculatorConfig) -> Self
pub fn events(&self) -> &[BallHalfEvent]
pub fn new_events(&self) -> &[BallHalfEvent]
pub fn projected_events(&self) -> Vec<BallHalfEvent>
pub fn flush_pending_event(&mut self)
Sourcepub fn current_event(&self) -> Option<&BallHalfEvent>
pub fn current_event(&self) -> Option<&BallHalfEvent>
The event covering the most recently processed frame (in-progress pending span, or the last committed event once flushed).
pub fn config(&self) -> &BallHalfCalculatorConfig
pub fn update( &mut self, frame: &FrameInfo, ball: &BallFrameState, live_play_state: &LivePlayState, ) -> SubtrActorResult<()>
Trait Implementations§
Source§impl Clone for BallHalfCalculator
impl Clone for BallHalfCalculator
Source§impl Debug for BallHalfCalculator
impl Debug for BallHalfCalculator
Source§impl Default for BallHalfCalculator
impl Default for BallHalfCalculator
Source§impl PartialEq for BallHalfCalculator
impl PartialEq for BallHalfCalculator
impl StructuralPartialEq for BallHalfCalculator
Auto Trait Implementations§
impl Freeze for BallHalfCalculator
impl RefUnwindSafe for BallHalfCalculator
impl Send for BallHalfCalculator
impl Sync for BallHalfCalculator
impl Unpin for BallHalfCalculator
impl UnsafeUnpin for BallHalfCalculator
impl UnwindSafe for BallHalfCalculator
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