Function etterna::rescore_from_note_hits[][src]

pub fn rescore_from_note_hits<W, I: IntoIterator<Item = Hit>>(
    note_hits: I,
    num_mine_hits: u32,
    num_hold_drops: u32,
    judge: &Judge
) -> Option<Wifescore> where
    W: Wife

Calculate a wifescore from a replay’s note hits, mine hits and hold drops.

This function is less generic than rescore because you can’t choose the scoring system - it’s already engrained within the note hits. However, note hits are more easily and reliably obtainable than note seconds and hit seconds columns. Therefore this function should be preferred if only a simple rescore with a different judge is required.

Returns None if the note_hits iterator is empty