pub struct TempoSpan {
pub start: FloatType,
pub end: FloatType,
pub mark: MetronomeMark,
pub position: Option<usize>,
}Expand description
One stretch of a stream and the tempo sounding through it: a boundary
of music21’s metronomeMarkBoundaries.
Fields§
§start: FloatTypeWhere the stretch begins.
end: FloatTypeWhere it ends, which is where the next tempo stands, or the end of the stream for the last.
mark: MetronomeMarkThe tempo sounding through it.
position: Option<usize>The position among Stream::leaves of the mark the stream holds,
where the tempo is one of its own: nothing for the quarter at 120
standing in for a stream that states none, and nothing for what a
tempo word or a metric modulation means.
Trait Implementations§
impl StructuralPartialEq for TempoSpan
Auto Trait Implementations§
impl Freeze for TempoSpan
impl RefUnwindSafe for TempoSpan
impl Send for TempoSpan
impl Sync for TempoSpan
impl Unpin for TempoSpan
impl UnsafeUnpin for TempoSpan
impl UnwindSafe for TempoSpan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more