pub struct SeasonTelemetry {
pub matches: u32,
pub goals: u32,
pub home_wins: u32,
pub draws: u32,
pub away_wins: u32,
pub scoreline_counts: BTreeMap<(u8, u8), u32>,
}Fields§
§matches: u32§goals: u32§home_wins: u32§draws: u32§away_wins: u32§scoreline_counts: BTreeMap<(u8, u8), u32>Implementations§
Source§impl SeasonTelemetry
impl SeasonTelemetry
pub fn goals_per_match(&self) -> f64
pub fn home_win_rate(&self) -> f64
Trait Implementations§
Source§impl Clone for SeasonTelemetry
impl Clone for SeasonTelemetry
Source§fn clone(&self) -> SeasonTelemetry
fn clone(&self) -> SeasonTelemetry
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 SeasonTelemetry
impl Debug for SeasonTelemetry
Source§impl Default for SeasonTelemetry
impl Default for SeasonTelemetry
Source§fn default() -> SeasonTelemetry
fn default() -> SeasonTelemetry
Returns the “default value” for a type. Read more
Source§impl EventObserver for SeasonTelemetry
impl EventObserver for SeasonTelemetry
Auto Trait Implementations§
impl Freeze for SeasonTelemetry
impl RefUnwindSafe for SeasonTelemetry
impl Send for SeasonTelemetry
impl Sync for SeasonTelemetry
impl Unpin for SeasonTelemetry
impl UnsafeUnpin for SeasonTelemetry
impl UnwindSafe for SeasonTelemetry
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