Struct etterna::Judge[][src]

pub struct Judge {
    pub name: &'static str,
    pub marvelous_window: f32,
    pub perfect_window: f32,
    pub great_window: f32,
    pub good_window: f32,
    pub bad_window: f32,
    pub hold_window: f32,
    pub roll_window: f32,
    pub mine_window: f32,
    // some fields omitted
}

Specification of a judgement level

For detailed information, see this spreadsheet from Foxfire and poco0317

Fields

name: &'static strmarvelous_window: f32perfect_window: f32great_window: f32good_window: f32bad_window: f32hold_window: f32roll_window: f32mine_window: f32

This is the window in which you can hit a mine, assuming no notes are prioritized. This is a +/- value.

Before universal mine timing the mine window was equal to the current judge’s great window.

Implementations

impl Judge[src]

pub fn classify(&self, deviation: f32) -> TapJudgement[src]

Classifies a tap deviation in seconds to a judgement. The parameter can be negative.

pub fn is_cb(&self, deviation: f32) -> bool[src]

Whether the given deviation is a combo breaker (CB)

pub fn is_marv(&self, deviation: f32) -> bool[src]

Whether the given deviation is considered marvelous

pub fn is_perf(&self, deviation: f32) -> bool[src]

Whether the given deviation is considered perfect

pub fn is_great(&self, deviation: f32) -> bool[src]

Whether the given deviation is considered great

pub fn is_good(&self, deviation: f32) -> bool[src]

Whether the given deviation is considered good

pub fn is_bad(&self, deviation: f32) -> bool[src]

Whether the given deviation is considered bad

pub fn is_miss(&self, deviation: f32) -> bool[src]

Whether the given deviation is considered a bad

Auto Trait Implementations

impl RefUnwindSafe for Judge

impl Send for Judge

impl Sync for Judge

impl Unpin for Judge

impl UnwindSafe for Judge

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.