pub struct TimingPoint {
pub bpm: f64,
pub offset: f64,
pub inherits: bool,
}Fields§
§bpm: f64The bpm of the timing point.
offset: f64The amount of milliseconds from the start of the song this timing point is located on.
inherits: boolWhether the timing point inherits or not.
Basically, inherited timing points are absolute, and define a new bpm independent of any previous bpms.
On the other hand, timing points that do not inherit have a negative bpm representing a percentage of the
bpm of the previous timing point.
See the osu wiki on the .osu format for more details.
Trait Implementations§
Source§impl Clone for TimingPoint
impl Clone for TimingPoint
Source§fn clone(&self) -> TimingPoint
fn clone(&self) -> TimingPoint
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 TimingPoint
impl Debug for TimingPoint
Source§impl PartialEq for TimingPoint
impl PartialEq for TimingPoint
impl StructuralPartialEq for TimingPoint
Auto Trait Implementations§
impl Freeze for TimingPoint
impl RefUnwindSafe for TimingPoint
impl Send for TimingPoint
impl Sync for TimingPoint
impl Unpin for TimingPoint
impl UnwindSafe for TimingPoint
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