Struct peace_performance::parse::Beatmap[][src]

pub struct Beatmap {
Show 15 fields pub mode: GameMode, pub version: u8, pub n_circles: u32, pub n_sliders: u32, pub n_spinners: u32, pub ar: f32, pub od: f32, pub cs: f32, pub hp: f32, pub sv: f32, pub tick_rate: f32, pub hit_objects: Vec<HitObject>, pub timing_points: Vec<TimingPoint>, pub difficulty_points: Vec<DifficultyPoint>, pub stack_leniency: f32,
}
Expand description

The main beatmap struct containing all data relevant for difficulty and pp calculation

Fields

mode: GameModeversion: u8n_circles: u32n_sliders: u32n_spinners: u32ar: f32od: f32cs: f32hp: f32sv: f32tick_rate: f32hit_objects: Vec<HitObject>timing_points: Vec<TimingPoint>difficulty_points: Vec<DifficultyPoint>stack_leniency: f32

Implementations

Trait Implementations

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

Calculate the max pp of a beatmap. Read more

Returns a builder to calculate pp and difficulty values. Read more

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. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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.