pub struct BeatmapAttributes { /* private fields */ }Expand description
Summary struct for a Beatmap’s attributes.
Clock rate is not considered in attribute values.
Implementations§
Source§impl BeatmapAttributes
impl BeatmapAttributes
Sourcepub const fn builder() -> BeatmapAttributesBuilder
pub const fn builder() -> BeatmapAttributesBuilder
Create a new BeatmapAttributesBuilder.
Sourcepub const fn clock_rate(&self) -> f64
pub const fn clock_rate(&self) -> f64
The clock rate.
Sourcepub fn hit_windows(&self) -> HitWindows
pub fn hit_windows(&self) -> HitWindows
Calculate the AR and OD hit windows.
Sourcepub fn apply_clock_rate(&self) -> AdjustedBeatmapAttributes
pub fn apply_clock_rate(&self) -> AdjustedBeatmapAttributes
Convert BeatmapAttributes into AdjustedBeatmapAttributes by
applying the clock rate to the attribute values.
Trait Implementations§
Source§impl Clone for BeatmapAttributes
impl Clone for BeatmapAttributes
Source§fn clone(&self) -> BeatmapAttributes
fn clone(&self) -> BeatmapAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BeatmapAttributes
impl Debug for BeatmapAttributes
Source§impl PartialEq for BeatmapAttributes
impl PartialEq for BeatmapAttributes
impl StructuralPartialEq for BeatmapAttributes
Auto Trait Implementations§
impl Freeze for BeatmapAttributes
impl RefUnwindSafe for BeatmapAttributes
impl Send for BeatmapAttributes
impl Sync for BeatmapAttributes
impl Unpin for BeatmapAttributes
impl UnsafeUnpin for BeatmapAttributes
impl UnwindSafe for BeatmapAttributes
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