pub struct TeamGameStats {
pub shots_on_goal: i32,
pub faceoff_wins: i32,
pub faceoff_total: i32,
pub power_play_goals: i32,
pub power_play_opportunities: i32,
pub penalty_minutes: i32,
pub hits: i32,
pub blocked_shots: i32,
pub giveaways: i32,
pub takeaways: i32,
}Expand description
Aggregated team statistics for game comparison
Fields§
§shots_on_goal: i32§faceoff_wins: i32§faceoff_total: i32§power_play_goals: i32§power_play_opportunities: i32§penalty_minutes: i32§hits: i32§blocked_shots: i32§giveaways: i32§takeaways: i32Implementations§
Source§impl TeamGameStats
impl TeamGameStats
Sourcepub fn from_team_player_stats(stats: &TeamPlayerStats) -> Self
pub fn from_team_player_stats(stats: &TeamPlayerStats) -> Self
Calculate aggregated team statistics from individual player stats
pub fn faceoff_percentage(&self) -> f64
pub fn power_play_percentage(&self) -> f64
Trait Implementations§
Source§impl Clone for TeamGameStats
impl Clone for TeamGameStats
Source§fn clone(&self) -> TeamGameStats
fn clone(&self) -> TeamGameStats
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 TeamGameStats
impl Debug for TeamGameStats
Source§impl Default for TeamGameStats
impl Default for TeamGameStats
Source§fn default() -> TeamGameStats
fn default() -> TeamGameStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for TeamGameStats
impl PartialEq for TeamGameStats
impl StructuralPartialEq for TeamGameStats
Auto Trait Implementations§
impl Freeze for TeamGameStats
impl RefUnwindSafe for TeamGameStats
impl Send for TeamGameStats
impl Sync for TeamGameStats
impl Unpin for TeamGameStats
impl UnwindSafe for TeamGameStats
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