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: GameMode
§version: u8
§n_circles: u32
§n_sliders: u32
§n_spinners: u32
§ar: f32
§od: f32
§cs: f32
§hp: f32
§sv: f32
§tick_rate: f32
§hit_objects: Vec<HitObject>
§timing_points: Vec<TimingPoint>
§difficulty_points: Vec<DifficultyPoint>
§stack_leniency: f32
Implementations§
Source§impl Beatmap
impl Beatmap
pub fn attributes(&self) -> BeatmapAttributes
Source§impl Beatmap
impl Beatmap
pub async fn parse<R: AsyncRead + Unpin>(input: R) -> ParseResult<Self>
pub fn parse_sync<R: SyncRead>(input: R) -> ParseResult<Self>
Trait Implementations§
Source§impl BeatmapExt for Beatmap
impl BeatmapExt for Beatmap
Auto Trait Implementations§
impl Freeze for Beatmap
impl RefUnwindSafe for Beatmap
impl Send for Beatmap
impl Sync for Beatmap
impl Unpin for Beatmap
impl UnwindSafe for Beatmap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more