pub struct TupletGroup {
pub part: usize,
pub staff: usize,
pub measure: usize,
pub voice: usize,
pub note_indices: Vec<usize>,
pub actual_notes: u8,
pub normal_notes: u8,
}Expand description
A group of notes forming one tuplet bracket within a single voice of one measure.
note_indices are 0-based positions within the voice. actual_notes and normal_notes
mirror [TupletInfo] for direct use in VexFlow tuplet rendering.
Fields§
§part: usize§staff: usize§measure: usize§voice: usize§note_indices: Vec<usize>Ordered note indices within the voice, in order.
actual_notes: u8Number of notes in the tuplet (e.g. 3 for a triplet).
normal_notes: u8Normal beat count displaced (e.g. 2 for a triplet fitting in 2 beats).
Trait Implementations§
Source§impl Clone for TupletGroup
impl Clone for TupletGroup
Source§fn clone(&self) -> TupletGroup
fn clone(&self) -> TupletGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TupletGroup
impl Debug for TupletGroup
Source§impl<'de> Deserialize<'de> for TupletGroup
impl<'de> Deserialize<'de> for TupletGroup
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 TupletGroup
impl RefUnwindSafe for TupletGroup
impl Send for TupletGroup
impl Sync for TupletGroup
impl Unpin for TupletGroup
impl UnsafeUnpin for TupletGroup
impl UnwindSafe for TupletGroup
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