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 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 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§impl PartialOrd for TimingPoint
impl PartialOrd 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