Trait rosu_pp::BeatmapExt[][src]

pub trait BeatmapExt {
    fn stars(
        &self,
        mods: impl Mods,
        passed_objects: Option<usize>
    ) -> StarResult;
fn max_pp(&self, mods: u32) -> PpResult;
fn pp(&self) -> AnyPP<'_>;
fn strains(&self, mods: impl Mods) -> Strains; }

Required methods

fn stars(&self, mods: impl Mods, passed_objects: Option<usize>) -> StarResult[src]

Calculate the stars and other attributes of a beatmap which are required for pp calculation.

fn max_pp(&self, mods: u32) -> PpResult[src]

Calculate the max pp of a beatmap.

If you seek more fine-tuning and options you need to match on the map’s mode and use the mode’s corresponding calculator, e.g. TaikoPP for taiko.

fn pp(&self) -> AnyPP<'_>[src]

Returns a builder to calculate pp and difficulty values.

Convenient method that matches on the map’s mode to choose the appropriate calculator.

fn strains(&self, mods: impl Mods) -> Strains[src]

Calculate the strains of a map. This essentially performs the same calculation as a stars function but instead of evaluating the final strains, they are just returned as is.

Suitable to plot the difficulty of a map over time.

Loading content...

Implementors

impl BeatmapExt for Beatmap[src]

Loading content...