pub struct BallThirdStats {
pub tracked_time: f32,
pub team_zero_third_time: f32,
pub neutral_third_time: f32,
pub team_one_third_time: f32,
pub labeled_time: LabeledFloatSums,
}Fields§
§tracked_time: f32§team_zero_third_time: f32§neutral_third_time: f32§team_one_third_time: f32§labeled_time: LabeledFloatSumsImplementations§
Source§impl BallThirdStats
impl BallThirdStats
pub fn team_zero_third_pct(&self) -> f32
pub fn team_one_third_pct(&self) -> f32
pub fn neutral_third_pct(&self) -> f32
pub fn time_with_labels(&self, labels: &[StatLabel]) -> f32
pub fn for_team(&self, is_team_zero: bool) -> BallThirdTeamStats
Trait Implementations§
Source§impl Clone for BallThirdStats
impl Clone for BallThirdStats
Source§fn clone(&self) -> BallThirdStats
fn clone(&self) -> BallThirdStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BallThirdStats
impl Debug for BallThirdStats
Source§impl Default for BallThirdStats
impl Default for BallThirdStats
Source§fn default() -> BallThirdStats
fn default() -> BallThirdStats
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BallThirdStats
impl<'de> Deserialize<'de> for BallThirdStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BallThirdStats
impl PartialEq for BallThirdStats
Source§fn eq(&self, other: &BallThirdStats) -> bool
fn eq(&self, other: &BallThirdStats) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BallThirdStats
impl Serialize for BallThirdStats
impl StructuralPartialEq for BallThirdStats
Auto Trait Implementations§
impl Freeze for BallThirdStats
impl RefUnwindSafe for BallThirdStats
impl Send for BallThirdStats
impl Sync for BallThirdStats
impl Unpin for BallThirdStats
impl UnsafeUnpin for BallThirdStats
impl UnwindSafe for BallThirdStats
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