pub struct PressureCalculator { /* private fields */ }Implementations§
Source§impl PressureCalculator
impl PressureCalculator
pub fn new() -> Self
pub fn with_config(config: PressureCalculatorConfig) -> Self
pub fn stats(&self) -> &PressureStats
pub fn config(&self) -> &PressureCalculatorConfig
pub fn team_zero_side_duration(&self) -> f32
pub fn team_one_side_duration(&self) -> f32
pub fn neutral_duration(&self) -> f32
pub fn total_tracked_duration(&self) -> f32
pub fn team_zero_side_pct(&self) -> f32
pub fn team_one_side_pct(&self) -> f32
pub fn neutral_pct(&self) -> f32
pub fn update( &mut self, frame: &FrameInfo, ball: &BallFrameState, live_play_state: &LivePlayState, ) -> SubtrActorResult<()>
Trait Implementations§
Source§impl Clone for PressureCalculator
impl Clone for PressureCalculator
Source§fn clone(&self) -> PressureCalculator
fn clone(&self) -> PressureCalculator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PressureCalculator
impl Debug for PressureCalculator
Source§impl Default for PressureCalculator
impl Default for PressureCalculator
Source§fn default() -> PressureCalculator
fn default() -> PressureCalculator
Returns the “default value” for a type. Read more
Source§impl PartialEq for PressureCalculator
impl PartialEq for PressureCalculator
impl StructuralPartialEq for PressureCalculator
Auto Trait Implementations§
impl Freeze for PressureCalculator
impl RefUnwindSafe for PressureCalculator
impl Send for PressureCalculator
impl Sync for PressureCalculator
impl Unpin for PressureCalculator
impl UnsafeUnpin for PressureCalculator
impl UnwindSafe for PressureCalculator
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