pub struct Measure {
pub id: MeasureId,
pub display_number: Option<String>,
pub source_span: Span,
pub expected_duration: Option<Rational>,
pub actual_duration: Rational,
pub multiple_rest: Option<u32>,
pub pickup: bool,
pub complete: bool,
pub barlines: Vec<MeasureBarline>,
pub repeat_endings: Vec<RepeatEndingModel>,
pub repeat_ending_closes: Vec<RepeatEndingCloseModel>,
pub overlays: Vec<OverlaySegment>,
}Fields§
§id: MeasureId§display_number: Option<String>MusicXML-origin <measure number> display label. ABC-origin scores use
the numeric MeasureId::number; imported MusicXML can use labels such
as 0, repeated movement-local numbers, or X1.
source_span: Span§expected_duration: Option<Rational>§actual_duration: Rational§multiple_rest: Option<u32>Display hint for the first measure of an expanded ABC Zn rest run.
The measures still exist individually; this only requests the compact
MusicXML multi-rest glyph.
pickup: bool§complete: bool§barlines: Vec<MeasureBarline>§repeat_endings: Vec<RepeatEndingModel>§repeat_ending_closes: Vec<RepeatEndingCloseModel>MusicXML-origin explicit volta closes (<ending type="stop|discontinue">)
that cannot be inferred from ABC barline syntax, such as a close on an
implicit regular right barline. ABC-origin scores keep this empty.
overlays: Vec<OverlaySegment>Trait Implementations§
impl Eq for Measure
impl StructuralPartialEq for Measure
Auto Trait Implementations§
impl Freeze for Measure
impl RefUnwindSafe for Measure
impl Send for Measure
impl Sync for Measure
impl Unpin for Measure
impl UnsafeUnpin for Measure
impl UnwindSafe for Measure
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