Enum peace_performance::AnyPP [−][src]
pub enum AnyPP<'m> { Fruits(FruitsPP<'m>), Mania(ManiaPP<'m>), Osu(OsuPP<'m>), Taiko(TaikoPP<'m>), }
Expand description
Calculator for pp on maps of any mode.
Variants
Tuple Fields of Fruits
0: FruitsPP<'m>
Tuple Fields of Mania
0: ManiaPP<'m>
Tuple Fields of Osu
0: OsuPP<'m>
Tuple Fields of Taiko
0: TaikoPP<'m>
Implementations
AttributeProvider
is implemented by StarResult
and PpResult
meaning you can give the result of a
star calculation or the result of a pp calculation.
If you already calculated the stars 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.
Amount of passed objects for partial plays, e.g. a fail.
Set the accuracy between 0.0 and 100.0.
For some modes this method depends on previously set values
be sure to call this last before calling calculate
.
Irrelevant for osu!mania.
Set the accuracy between 0.0 and 100.0.
For some modes this method depends on previously set values
be sure to call this last before calling calculate
.
Irrelevant for osu!mania.
If it is used to calculate the PP of multiple different ACCs, it should be called from high to low according to the ACC value, otherwise it is invalid.
Examples:
// valid let acc_100 = { c.set_accuracy(100.0); c.calculate().await }; let acc_99 = { c.set_accuracy(99.0); c.calculate().await }; let acc_98 = { c.set_accuracy(98.0); c.calculate().await }; let acc_95 = { c.set_accuracy(95.0); c.calculate().await }; // invalid let acc_95 = { c.set_accuracy(95.0); c.calculate().await }; let acc_98 = { c.set_accuracy(98.0); c.calculate().await }; let acc_99 = { c.set_accuracy(99.0); c.calculate().await }; let acc_100 = { c.set_accuracy(100.0); c.calculate().await };
Specify the amount of misses of a play.
Irrelevant for osu!mania.
Specify the max combo of the play.
Irrelevant for osu!mania.
Specify the amount of 300s of a play.
Irrelevant for osu!mania.
Specify the amount of 100s of a play.
Irrelevant for osu!mania.
Specify the amount of 50s of a play.
Irrelevant for osu!mania and osu!taiko.
Specify the amount of katus of a play.
This value is only relevant for osu!ctb for which it represent the amount of tiny droplet misses.
Trait Implementations
Auto Trait Implementations
impl<'m> RefUnwindSafe for AnyPP<'m>
impl<'m> UnwindSafe for AnyPP<'m>
Blanket Implementations
Mutably borrows from an owned value. Read more