Struct rosu_pp::Beatmap[][src]

pub struct Beatmap {
    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>,
}

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>

Implementations

impl Beatmap[src]

pub fn parse<R: Read>(input: R) -> ParseResult<Self>[src]

pub fn attributes(&self) -> BeatmapAttributes[src]

Trait Implementations

impl BeatmapExt for Beatmap[src]

impl Clone for Beatmap[src]

impl Debug for Beatmap[src]

impl Default for Beatmap[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.