pub struct MeasureContext {
pub divisions: Option<IntegerType>,
pub tuplets: ActiveTuplets,
}Available on crate feature
musicxml only.Expand description
What a <measure> read on its own is read within: what music21’s
MeasureParser takes from the measures before it.
Fields§
§divisions: Option<IntegerType>The divisions to the quarter, where the measure sets none.
tuplets: ActiveTupletsThe tuplets it starts inside, which reading leaves as it ends.
Implementations§
Source§impl MeasureContext
impl MeasureContext
Sourcepub fn with_divisions(divisions: IntegerType) -> Self
pub fn with_divisions(divisions: IntegerType) -> Self
A measure read with divisions to the quarter, inside no tuplet.
Trait Implementations§
Source§impl Clone for MeasureContext
impl Clone for MeasureContext
Source§impl Debug for MeasureContext
impl Debug for MeasureContext
Source§impl Default for MeasureContext
impl Default for MeasureContext
Source§impl PartialEq for MeasureContext
impl PartialEq for MeasureContext
impl StructuralPartialEq for MeasureContext
Auto Trait Implementations§
impl Forget for MeasureContext
impl Freeze for MeasureContext
impl Move for MeasureContext
impl RefUnwindSafe for MeasureContext
impl Send for MeasureContext
impl Sync for MeasureContext
impl Unpin for MeasureContext
impl UnsafeUnpin for MeasureContext
impl UnwindSafe for MeasureContext
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