pub struct BeamGroup {
pub part: usize,
pub staff: usize,
pub measure: usize,
pub voice: usize,
pub note_indices: Vec<usize>,
}Expand description
A group of beamed notes within a single voice of a measure.
note_indices are 0-based positions within score.parts[part].staves[staff] .measures[measure].voices[voice].
Consumers (e.g. VexFlow) use this to explicitly specify beam groupings rather than relying on automatic detection, which can produce incorrect results for complex rhythms.
Fields§
§part: usize§staff: usize§measure: usize§voice: usize§note_indices: Vec<usize>Ordered note indices within the voice that form this beam group.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BeamGroup
impl<'de> Deserialize<'de> for BeamGroup
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BeamGroup
impl RefUnwindSafe for BeamGroup
impl Send for BeamGroup
impl Sync for BeamGroup
impl Unpin for BeamGroup
impl UnsafeUnpin for BeamGroup
impl UnwindSafe for BeamGroup
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