Struct rosu_map::section::timing_points::ControlPoints
source · pub struct ControlPoints {
pub timing_points: Vec<TimingPoint>,
pub difficulty_points: Vec<DifficultyPoint>,
pub effect_points: Vec<EffectPoint>,
pub sample_points: Vec<SamplePoint>,
}Expand description
All control points of a Beatmap.
Fields§
§timing_points: Vec<TimingPoint>§difficulty_points: Vec<DifficultyPoint>§effect_points: Vec<EffectPoint>§sample_points: Vec<SamplePoint>Implementations§
source§impl ControlPoints
impl ControlPoints
sourcepub fn difficulty_point_at(&self, time: f64) -> Option<&DifficultyPoint>
pub fn difficulty_point_at(&self, time: f64) -> Option<&DifficultyPoint>
Finds the DifficultyPoint that is active at the given time.
sourcepub fn effect_point_at(&self, time: f64) -> Option<&EffectPoint>
pub fn effect_point_at(&self, time: f64) -> Option<&EffectPoint>
Finds the EffectPoint that is active at the given time.
sourcepub fn sample_point_at(&self, time: f64) -> Option<&SamplePoint>
pub fn sample_point_at(&self, time: f64) -> Option<&SamplePoint>
Finds the SamplePoint that is active at the given time.
sourcepub fn timing_point_at(&self, time: f64) -> Option<&TimingPoint>
pub fn timing_point_at(&self, time: f64) -> Option<&TimingPoint>
Finds the TimingPoint that is active at the given time.
sourcepub fn add<P: ControlPoint<ControlPoints>>(&mut self, point: P)
pub fn add<P: ControlPoint<ControlPoints>>(&mut self, point: P)
Add a ControlPoint into its corresponding list.
Trait Implementations§
source§impl Clone for ControlPoints
impl Clone for ControlPoints
source§fn clone(&self) -> ControlPoints
fn clone(&self) -> ControlPoints
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<ControlPoints> for DifficultyPoint
impl ControlPoint<ControlPoints> for DifficultyPoint
source§fn check_already_existing(&self, control_points: &ControlPoints) -> bool
fn check_already_existing(&self, control_points: &ControlPoints) -> bool
Whether
self is redundant w.r.t. an already existing control point.source§fn add(self, control_points: &mut ControlPoints)
fn add(self, control_points: &mut ControlPoints)
Adding the control point into the collection. Read more
source§impl ControlPoint<ControlPoints> for EffectPoint
impl ControlPoint<ControlPoints> for EffectPoint
source§fn check_already_existing(&self, control_points: &ControlPoints) -> bool
fn check_already_existing(&self, control_points: &ControlPoints) -> bool
Whether
self is redundant w.r.t. an already existing control point.source§fn add(self, control_points: &mut ControlPoints)
fn add(self, control_points: &mut ControlPoints)
Adding the control point into the collection. Read more
source§impl ControlPoint<ControlPoints> for SamplePoint
impl ControlPoint<ControlPoints> for SamplePoint
source§fn check_already_existing(&self, control_points: &ControlPoints) -> bool
fn check_already_existing(&self, control_points: &ControlPoints) -> bool
Whether
self is redundant w.r.t. an already existing control point.source§fn add(self, control_points: &mut ControlPoints)
fn add(self, control_points: &mut ControlPoints)
Adding the control point into the collection. Read more
source§impl ControlPoint<ControlPoints> for TimingPoint
impl ControlPoint<ControlPoints> for TimingPoint
source§fn check_already_existing(&self, _: &ControlPoints) -> bool
fn check_already_existing(&self, _: &ControlPoints) -> bool
Whether
self is redundant w.r.t. an already existing control point.source§fn add(self, control_points: &mut ControlPoints)
fn add(self, control_points: &mut ControlPoints)
Adding the control point into the collection. Read more
source§impl Debug for ControlPoints
impl Debug for ControlPoints
source§impl Default for ControlPoints
impl Default for ControlPoints
source§fn default() -> ControlPoints
fn default() -> ControlPoints
Returns the “default value” for a type. Read more
source§impl PartialEq for ControlPoints
impl PartialEq for ControlPoints
source§fn eq(&self, other: &ControlPoints) -> bool
fn eq(&self, other: &ControlPoints) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ControlPoints
Auto Trait Implementations§
impl RefUnwindSafe for ControlPoints
impl Send for ControlPoints
impl Sync for ControlPoints
impl Unpin for ControlPoints
impl UnwindSafe for ControlPoints
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