Struct glicko2::GameResult [] [src]

pub struct GameResult { /* fields omitted */ }

Represents a result (win, loss, or draw) over an opposing player or team.

Note well that only the opponent is stored in a GameResult. The player that actually won, lost or drew respectively is not stored in the game result, but instead is passed in to new_rating.

Methods

impl GameResult
[src]

[src]

Constructs a new game result representing a win over a player or team with rating opponent_rating.

A Glicko2Rating or GlickoRating can be supplied for opponent_rating, and it will not affect the result of rating calculations as the volatility of opponents are not looked at for updating ratings.

[src]

Constructs a new game result representing a loss to a player or team with rating opponent_rating.

A Glicko2Rating or GlickoRating can be supplied for opponent_rating, and it will not affect the result of rating calculations as the volatility of opponents are not looked at for updating ratings.

[src]

Constructs a new game result representing a draw with a player or team with rating opponent_rating.

A Glicko2Rating or GlickoRating can be supplied for opponent_rating, and it will not affect the result of rating calculations as the volatility of opponents are not looked at for updating ratings.

Trait Implementations

impl Clone for GameResult
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for GameResult
[src]

impl Debug for GameResult
[src]

[src]

Formats the value using the given formatter.