Struct skillratings::sticko::StickoRating
source · 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
impl StickoRating
Trait Implementations§
source§impl Clone for StickoRating
impl Clone for StickoRating
source§fn clone(&self) -> StickoRating
fn clone(&self) -> StickoRating
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StickoRating
impl Debug for StickoRating
source§impl Default for StickoRating
impl Default for StickoRating
source§impl From<Glicko2Rating> for StickoRating
impl From<Glicko2Rating> for StickoRating
source§fn from(g: Glicko2Rating) -> Self
fn from(g: Glicko2Rating) -> Self
Converts to this type from the input type.
source§impl From<GlickoBoostRating> for StickoRating
impl From<GlickoBoostRating> for StickoRating
source§fn from(g: GlickoBoostRating) -> Self
fn from(g: GlickoBoostRating) -> Self
Converts to this type from the input type.
source§impl From<GlickoRating> for StickoRating
impl From<GlickoRating> for StickoRating
source§fn from(g: GlickoRating) -> Self
fn from(g: GlickoRating) -> Self
Converts to this type from the input type.
source§impl From<StickoRating> for Glicko2Rating
impl From<StickoRating> for Glicko2Rating
source§fn from(s: StickoRating) -> Self
fn from(s: StickoRating) -> Self
Converts to this type from the input type.
source§impl From<StickoRating> for GlickoBoostRating
impl From<StickoRating> for GlickoBoostRating
source§fn from(s: StickoRating) -> Self
fn from(s: StickoRating) -> Self
Converts to this type from the input type.
source§impl From<StickoRating> for GlickoRating
impl From<StickoRating> for GlickoRating
source§fn from(s: StickoRating) -> Self
fn from(s: StickoRating) -> Self
Converts to this type from the input type.
source§impl PartialEq for StickoRating
impl PartialEq for StickoRating
source§fn eq(&self, other: &StickoRating) -> bool
fn eq(&self, other: &StickoRating) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Rating for StickoRating
impl Rating for StickoRating
source§fn uncertainty(&self) -> Option<f64>
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
.impl Copy for StickoRating
impl StructuralPartialEq for StickoRating
Auto Trait Implementations§
impl Freeze for StickoRating
impl RefUnwindSafe for StickoRating
impl Send for StickoRating
impl Sync for StickoRating
impl Unpin for StickoRating
impl UnwindSafe for StickoRating
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