Wife3

Struct Wife3 

Source
pub struct Wife3;
Expand description

3rd revision of Etterna’s Wife scoring system

Trait Implementations§

Source§

impl Wife for Wife3

Source§

const MINE_HIT_WEIGHT: f32 = -3.5f32

Score value which is associated with mine hits (typically negative)
Source§

const HOLD_DROP_WEIGHT: f32 = -2.25f32

Score value which is associated with hold drops (typically negative)
Source§

const MISS_WEIGHT: f32 = -2.75f32

Score value which is associated with missed notes (typically negative)
Source§

fn calc_deviation(deviation: f32, judge: &Judge) -> f32

Calculate a wifescore by the note deviation, which can be positive or negative
Source§

fn calc(hit: Hit, judge: &Judge) -> f32

Calculate the wifescore for a note hit
Source§

fn apply( note_hits: impl IntoIterator<Item = Hit>, num_mine_hits: u32, num_hold_drops: u32, judge: &Judge, ) -> Option<Wifescore>

Utility function to apply this wifescore algorithm to a list of note hits, mine hits and hold drops. Read more

Auto Trait Implementations§

§

impl Freeze for Wife3

§

impl RefUnwindSafe for Wife3

§

impl Send for Wife3

§

impl Sync for Wife3

§

impl Unpin for Wife3

§

impl UnwindSafe for Wife3

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.