[−][src]Struct glicko2::GameResult
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]
pub 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.
pub 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.
pub 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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GameResult
[src]
impl Debug for GameResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for GameResult
impl Send for GameResult
impl Sync for GameResult
impl Unpin for GameResult
impl UnwindSafe for GameResult
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,