Struct rosu_map::section::timing_points::TimingPoint
source · pub struct TimingPoint {
pub time: f64,
pub beat_len: f64,
pub omit_first_bar_line: bool,
pub time_signature: TimeSignature,
}Expand description
The time signature at this control point.
Fields§
§time: f64§beat_len: f64§omit_first_bar_line: bool§time_signature: TimeSignatureImplementations§
source§impl TimingPoint
impl TimingPoint
pub const DEFAULT_BEAT_LEN: f64 = 1000f64
pub const DEFAULT_OMIT_FIRST_BAR_LINE: bool = false
pub const DEFAULT_TIME_SIGNATURE: TimeSignature = _
pub fn new( time: f64, beat_len: f64, omit_first_bar_line: bool, time_signature: TimeSignature ) -> Self
Trait Implementations§
source§impl Clone for TimingPoint
impl Clone for TimingPoint
source§fn clone(&self) -> TimingPoint
fn clone(&self) -> TimingPoint
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 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 TimingPoint
impl Debug for TimingPoint
source§impl Default for TimingPoint
impl Default for TimingPoint
source§impl PartialEq for TimingPoint
impl PartialEq for TimingPoint
source§fn eq(&self, other: &TimingPoint) -> bool
fn eq(&self, other: &TimingPoint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for TimingPoint
impl PartialOrd for TimingPoint
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for TimingPoint
Auto Trait Implementations§
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