pub struct CenterCalculator { /* private fields */ }Expand description
Detects centering passes during live play.
Implementations§
Source§impl CenterCalculator
impl CenterCalculator
pub fn new() -> Self
pub fn events(&self) -> &[CenterEvent]
pub fn new_events(&self) -> &[CenterEvent]
pub fn update( &mut self, frame: &FrameInfo, ball: &BallFrameState, touch_state: &TouchState, frame_events: &FrameEventsState, live_play_state: &LivePlayState, ) -> SubtrActorResult<()>
Trait Implementations§
Source§impl Clone for CenterCalculator
impl Clone for CenterCalculator
Source§impl Debug for CenterCalculator
impl Debug for CenterCalculator
Auto Trait Implementations§
impl Freeze for CenterCalculator
impl RefUnwindSafe for CenterCalculator
impl Send for CenterCalculator
impl Sync for CenterCalculator
impl Unpin for CenterCalculator
impl UnsafeUnpin for CenterCalculator
impl UnwindSafe for CenterCalculator
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