pub struct StickoRating {
    pub rating: f64,
    pub deviation: f64,
}
Expand description

The Sticko rating of a player.

Similar to GlickoRating.

The default rating is 1500.0. The default deviation is 350.0.

Fields§

§rating: f64

The player’s Sticko rating number, by default 1500.0.

§deviation: f64

The player’s Sticko deviation number, by default 350.0.

Implementations§

source§

impl StickoRating

source

pub const fn new() -> Self

Initialise a new StickoRating with a rating of 1500.0 and a deviation of 350.0.

Trait Implementations§

source§

impl Clone for StickoRating

source§

fn clone(&self) -> StickoRating

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for StickoRating

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for StickoRating

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl From<(f64, f64)> for StickoRating

source§

fn from((r, d): (f64, f64)) -> Self

Converts to this type from the input type.
source§

impl From<Glicko2Rating> for StickoRating

source§

fn from(g: Glicko2Rating) -> Self

Converts to this type from the input type.
source§

impl From<GlickoBoostRating> for StickoRating

source§

fn from(g: GlickoBoostRating) -> Self

Converts to this type from the input type.
source§

impl From<GlickoRating> for StickoRating

source§

fn from(g: GlickoRating) -> Self

Converts to this type from the input type.
source§

impl From<StickoRating> for Glicko2Rating

source§

fn from(s: StickoRating) -> Self

Converts to this type from the input type.
source§

impl From<StickoRating> for GlickoBoostRating

source§

fn from(s: StickoRating) -> Self

Converts to this type from the input type.
source§

impl From<StickoRating> for GlickoRating

source§

fn from(s: StickoRating) -> Self

Converts to this type from the input type.
source§

impl PartialEq for StickoRating

source§

fn eq(&self, other: &StickoRating) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Rating for StickoRating

source§

fn rating(&self) -> f64

A single value for player’s skill
source§

fn uncertainty(&self) -> Option<f64>

A value for the uncertainty of a players rating. If the algorithm does not include an uncertainty value, this will return None.
source§

fn new(rating: Option<f64>, uncertainty: Option<f64>) -> Self

Initialise a Rating with provided score and uncertainty, if None use default. If the algorithm does not include an uncertainty value it will get dismissed.
source§

impl Copy for StickoRating

source§

impl StructuralPartialEq for StickoRating

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.