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]

[src]

Constructs a new game result representing a win over player.

[src]

Constructs a new game result representing a loss to player.

[src]

Constructs a new game result representing a draw with player.

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.