pub struct ExplodeVoicesCmd {
pub part_index: usize,
pub source_staff: usize,
pub target_staves: Vec<usize>,
pub start_measure: usize,
pub end_measure: usize,
}Expand description
Move voices from one staff into the primary voices of compatible staves.
target_staves[voice] receives the corresponding source voice. The first
target must equal source_staff, so the command does not discard voice zero.
Non-source targets must contain only rests in their primary voice and no
secondary voices; otherwise the command fails before changing the score.
Fields§
§part_index: usize§source_staff: usize§target_staves: Vec<usize>§start_measure: usize§end_measure: usizeTrait Implementations§
Source§impl Clone for ExplodeVoicesCmd
impl Clone for ExplodeVoicesCmd
Source§impl Debug for ExplodeVoicesCmd
impl Debug for ExplodeVoicesCmd
Source§impl<'de> Deserialize<'de> for ExplodeVoicesCmd
impl<'de> Deserialize<'de> for ExplodeVoicesCmd
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 ExplodeVoicesCmd
impl RefUnwindSafe for ExplodeVoicesCmd
impl Send for ExplodeVoicesCmd
impl Sync for ExplodeVoicesCmd
impl Unpin for ExplodeVoicesCmd
impl UnsafeUnpin for ExplodeVoicesCmd
impl UnwindSafe for ExplodeVoicesCmd
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