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]
fn win<T: Into<Glicko2Rating>>(opponent_rating: T) -> GameResult
[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.
fn loss<T: Into<Glicko2Rating>>(opponent_rating: T) -> GameResult
[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.
fn draw<T: Into<Glicko2Rating>>(opponent_rating: T) -> GameResult
[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]
fn clone(&self) -> GameResult
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more