pub struct FormationStats {
pub uses: u32,
pub goals: u32,
pub shots: u32,
}Expand description
Per-formation usage seen by StreamTelemetry::record — one increment per
side per match (a formation used by both home and away in the same match
counts twice), keyed by Lineup::formation in the caller.
Fields§
§uses: u32Number of side-uses of this formation (not matches).
goals: u32§shots: u32Implementations§
Source§impl FormationStats
impl FormationStats
pub fn goals_per_match(&self) -> f64
pub fn shots_per_match(&self) -> f64
Trait Implementations§
Source§impl Clone for FormationStats
impl Clone for FormationStats
Source§fn clone(&self) -> FormationStats
fn clone(&self) -> FormationStats
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 moreimpl Copy for FormationStats
Source§impl Debug for FormationStats
impl Debug for FormationStats
Source§impl Default for FormationStats
impl Default for FormationStats
Source§fn default() -> FormationStats
fn default() -> FormationStats
Returns the “default value” for a type. Read more
impl Eq for FormationStats
Source§impl PartialEq for FormationStats
impl PartialEq for FormationStats
impl StructuralPartialEq for FormationStats
Auto Trait Implementations§
impl Freeze for FormationStats
impl RefUnwindSafe for FormationStats
impl Send for FormationStats
impl Sync for FormationStats
impl Unpin for FormationStats
impl UnsafeUnpin for FormationStats
impl UnwindSafe for FormationStats
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