Struct rosu_pp::model::control_point::DifficultyPoint
source · pub struct DifficultyPoint {
pub time: f64,
pub slider_velocity: f64,
pub bpm_multiplier: f64,
pub generate_ticks: bool,
}
Expand description
Difficulty-related info about this control point.
Fields§
§time: f64
§slider_velocity: f64
§bpm_multiplier: f64
§generate_ticks: bool
Implementations§
source§impl DifficultyPoint
impl DifficultyPoint
pub const DEFAULT_SLIDER_VELOCITY: f64 = 1f64
pub const DEFAULT_BPM_MULTIPLIER: f64 = 1f64
pub const DEFAULT_GENERATE_TICKS: bool = true
pub fn new(time: f64, beat_len: f64, speed_multiplier: f64) -> Self
pub fn is_redundant(&self, existing: &Self) -> bool
Trait Implementations§
source§impl Clone for DifficultyPoint
impl Clone for DifficultyPoint
source§fn clone(&self) -> DifficultyPoint
fn clone(&self) -> DifficultyPoint
Returns a copy 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 ControlPoint<BeatmapState> for DifficultyPoint
impl ControlPoint<BeatmapState> for DifficultyPoint
source§fn check_already_existing(&self, state: &BeatmapState) -> bool
fn check_already_existing(&self, state: &BeatmapState) -> bool
Whether
self
is redundant w.r.t. an already existing control point.source§fn add(self, state: &mut BeatmapState)
fn add(self, state: &mut BeatmapState)
Adding the control point into the collection. Read more
source§impl Debug for DifficultyPoint
impl Debug for DifficultyPoint
source§impl Default for DifficultyPoint
impl Default for DifficultyPoint
source§impl PartialEq for DifficultyPoint
impl PartialEq for DifficultyPoint
source§fn eq(&self, other: &DifficultyPoint) -> bool
fn eq(&self, other: &DifficultyPoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DifficultyPoint
Auto Trait Implementations§
impl Freeze for DifficultyPoint
impl RefUnwindSafe for DifficultyPoint
impl Send for DifficultyPoint
impl Sync for DifficultyPoint
impl Unpin for DifficultyPoint
impl UnwindSafe for DifficultyPoint
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