pub struct RatingChangeCtx<'a> {
pub player_power: i64,
pub player_rating: i64,
pub player_win_streak: i64,
pub opponent_power: i64,
pub settings: &'a ArenaSettings,
}Expand description
Matchup inputs for the rating math. player_win_streak is the streak
BEFORE the fight being scored (so the Nth consecutive win pays
base + min((N-1)·step, max)).
Fields§
§player_power: i64§player_rating: i64§player_win_streak: i64§opponent_power: i64§settings: &'a ArenaSettingsAuto Trait Implementations§
impl<'a> Freeze for RatingChangeCtx<'a>
impl<'a> RefUnwindSafe for RatingChangeCtx<'a>
impl<'a> Send for RatingChangeCtx<'a>
impl<'a> Sync for RatingChangeCtx<'a>
impl<'a> Unpin for RatingChangeCtx<'a>
impl<'a> UnwindSafe for RatingChangeCtx<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more