Struct glicko2::GameResult
[−]
[src]
pub struct GameResult { /* fields omitted */ }
Represents a result (win, loss, or draw) over an opposing player.
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<Glicko2Player>>(player: T) -> GameResult
[src]
Constructs a new game result representing a win over player
.
fn loss<T: Into<Glicko2Player>>(player: T) -> GameResult
[src]
Constructs a new game result representing a loss to player
.
fn draw<T: Into<Glicko2Player>>(player: T) -> GameResult
[src]
Constructs a new game result representing a draw with player
.
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