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