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 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 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
impl StructuralPartialEq for ControlPoints
Auto Trait Implementations§
impl Freeze for ControlPoints
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