pub struct HalfVolleyCalculator { /* private fields */ }Expand description
Detects half-volleys from ball/player state and touches.
Implementations§
Source§impl HalfVolleyCalculator
impl HalfVolleyCalculator
pub fn new() -> Self
pub fn with_config(config: HalfVolleyCalculatorConfig) -> Self
pub fn config(&self) -> &HalfVolleyCalculatorConfig
pub fn events(&self) -> &[HalfVolleyEvent]
pub fn new_events(&self) -> &[HalfVolleyEvent]
pub fn update( &mut self, frame: &FrameInfo, ball: &BallFrameState, players: &PlayerFrameState, touch_state: &TouchState, live_play_state: &LivePlayState, ) -> SubtrActorResult<()>
Trait Implementations§
Source§impl Clone for HalfVolleyCalculator
impl Clone for HalfVolleyCalculator
Source§impl Debug for HalfVolleyCalculator
impl Debug for HalfVolleyCalculator
Auto Trait Implementations§
impl Freeze for HalfVolleyCalculator
impl RefUnwindSafe for HalfVolleyCalculator
impl Send for HalfVolleyCalculator
impl Sync for HalfVolleyCalculator
impl Unpin for HalfVolleyCalculator
impl UnsafeUnpin for HalfVolleyCalculator
impl UnwindSafe for HalfVolleyCalculator
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