Trait etterna::SimpleReplay[][src]

pub trait SimpleReplay {
    fn iter_hits(&self) -> Box<dyn Iterator<Item = Hit>>;

    fn longest_combo(&self, hit_filter: impl FnMut(Hit) -> bool) -> u32 { ... }
fn tap_judgements(&self, judge: &Judge) -> TapJudgements { ... }
fn mean_deviation(&self) -> f32 { ... } }

Required methods

fn iter_hits(&self) -> Box<dyn Iterator<Item = Hit>>[src]

Loading content...

Provided methods

fn longest_combo(&self, hit_filter: impl FnMut(Hit) -> bool) -> u32[src]

Finds the longest combo of notes evaluating to true in the given closure

The note deviations passed into the closure are always positive. In case of a miss, the closure call is skipped entirely and false is inserted.

Example

Find the longest marvelous combo:

let longest_marvelous_combo = replay.longest_combo(|d| d.is_marv(etterna::J4));

fn tap_judgements(&self, judge: &Judge) -> TapJudgements[src]

Generate a crate::TapJudgements instance of this replay

fn mean_deviation(&self) -> f32[src]

Loading content...

Implementors

Loading content...