pub struct WhiffCalculator { /* private fields */ }Expand description
Detects whiffs and beaten-to-ball attempts.
Implementations§
Source§impl WhiffCalculator
impl WhiffCalculator
pub fn new() -> Self
pub fn events(&self) -> &[WhiffEvent]
pub fn new_events(&self) -> &[WhiffEvent]
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 WhiffCalculator
impl Clone for WhiffCalculator
Source§impl Debug for WhiffCalculator
impl Debug for WhiffCalculator
Source§impl Default for WhiffCalculator
impl Default for WhiffCalculator
Source§impl PartialEq for WhiffCalculator
impl PartialEq for WhiffCalculator
impl StructuralPartialEq for WhiffCalculator
Auto Trait Implementations§
impl Freeze for WhiffCalculator
impl RefUnwindSafe for WhiffCalculator
impl Send for WhiffCalculator
impl Sync for WhiffCalculator
impl Unpin for WhiffCalculator
impl UnsafeUnpin for WhiffCalculator
impl UnwindSafe for WhiffCalculator
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