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

Fruits

Tuple Fields of Fruits

0: FruitsPP<'m>
Mania

Tuple Fields of Mania

0: ManiaPP<'m>
Osu

Tuple Fields of Osu

0: OsuPP<'m>
Taiko

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.

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

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.

Specify the score of a play.

This value is only relevant for osu!mania.

On NoMod its between 0 and 1,000,000, on Easy between 0 and 500,000, etc.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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.