pub struct PasteRangeCmd {
pub part_index: usize,
pub staff_index: usize,
pub voice_index: usize,
pub target_measure: usize,
pub measures: Vec<Vec<Note>>,
}Expand description
Replace a contiguous range of voice measures with stored notes (undo-able).
measures contains one Vec<Note> per measure to paste, starting at target_measure.
The target voice of each measure is replaced entirely.
Fields§
§part_index: usize§staff_index: usize§voice_index: usize§target_measure: usize§measures: Vec<Vec<Note>>One note list per measure, in order.
Trait Implementations§
Source§impl Clone for PasteRangeCmd
impl Clone for PasteRangeCmd
Source§fn clone(&self) -> PasteRangeCmd
fn clone(&self) -> PasteRangeCmd
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 PasteRangeCmd
impl Debug for PasteRangeCmd
Source§impl<'de> Deserialize<'de> for PasteRangeCmd
impl<'de> Deserialize<'de> for PasteRangeCmd
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 PasteRangeCmd
impl RefUnwindSafe for PasteRangeCmd
impl Send for PasteRangeCmd
impl Sync for PasteRangeCmd
impl Unpin for PasteRangeCmd
impl UnsafeUnpin for PasteRangeCmd
impl UnwindSafe for PasteRangeCmd
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