Struct rosu_pp::TaikoPP[][src]

pub struct TaikoPP<'map> { /* fields omitted */ }
Expand description

Performance calculator on osu!taiko maps.

Example

use rosu_pp::{TaikoPP, Beatmap};

let map: Beatmap = ...

let pp_result = TaikoPP::new(&map)
    .mods(8 + 64) // HDDT
    .combo(1234)
    .misses(1)
    .accuracy(98.5)
    .calculate();

println!("PP: {} | Stars: {}", pp_result.pp(), pp_result.stars());

let next_result = TaikoPP::new(&map)
    .attributes(pp_result)  // reusing previous results for performance
    .mods(8 + 64)           // has to be the same to reuse attributes
    .accuracy(99.5)
    .calculate();

println!("PP: {} | Stars: {}", next_result.pp(), next_result.stars());

Implementations

Create a new performance calculator for osu!taiko maps.

Provide the result of a previous difficulty or performance calculation. If you already calculated the attributes for the current map-mod combination, be sure to put them in here so that they don’t have to be recalculated.

Specify mods through their bit values.

See https://github.com/ppy/osu-api/wiki#mods

Specify the max combo of the play.

Specify the amount of 300s of a play.

Specify the amount of 100s of a play.

Specify the amount of misses of the play.

Set the accuracy between 0.0 and 100.0.

Amount of passed objects for partial plays, e.g. a fail.

If you want to calculate the performance after every few objects, instead of using TaikoPP multiple times with different passed_objects, you should use TaikoGradualPerformanceAttributes.

Provide parameters through a TaikoScoreState.

Calculate all performance related values, including pp and stars.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.