pub struct TimingPoints {
pub timing_points: Vec<TimingPoint>,
}Fields§
§timing_points: Vec<TimingPoint>Implementations§
Source§impl TimingPoints
impl TimingPoints
pub fn new() -> Self
pub fn add_timing_point(&mut self, timing_point: TimingPoint)
pub fn count(&self) -> usize
pub fn uninherited_count(&self) -> usize
pub fn inherited_count(&self) -> usize
pub fn start_time(&self) -> Option<f32>
pub fn end_time(&self) -> Option<f32>
pub fn points_in_range( &self, start_time: f32, end_time: f32, ) -> Vec<&TimingPoint>
pub fn sort_by_time(&mut self)
pub fn get_bpms(&self) -> Vec<f32>
pub fn get_slider_velocities(&self) -> Vec<f32>
pub fn to_osu_format(&self) -> String
Trait Implementations§
Source§impl Clone for TimingPoints
impl Clone for TimingPoints
Source§fn clone(&self) -> TimingPoints
fn clone(&self) -> TimingPoints
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimingPoints
impl Debug for TimingPoints
Source§impl Default for TimingPoints
impl Default for TimingPoints
Source§impl FromStr for TimingPoints
impl FromStr for TimingPoints
Source§impl PartialEq for TimingPoints
impl PartialEq for TimingPoints
Source§fn eq(&self, other: &TimingPoints) -> bool
fn eq(&self, other: &TimingPoints) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TimingPoints
Auto Trait Implementations§
impl Freeze for TimingPoints
impl RefUnwindSafe for TimingPoints
impl Send for TimingPoints
impl Sync for TimingPoints
impl Unpin for TimingPoints
impl UnsafeUnpin for TimingPoints
impl UnwindSafe for TimingPoints
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