pub struct AddStaffCmd {
pub part_index: usize,
pub clef: Clef,
}Expand description
Add a new staff to an existing part with the given clef.
The new staff is appended with empty measures matching the current measure count.
Clef values: "Treble" | "Bass" | "Alto" | "Tenor" | "Percussion".
Fields§
§part_index: usize§clef: ClefTrait Implementations§
Source§impl Clone for AddStaffCmd
impl Clone for AddStaffCmd
Source§fn clone(&self) -> AddStaffCmd
fn clone(&self) -> AddStaffCmd
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 AddStaffCmd
impl Debug for AddStaffCmd
Source§impl<'de> Deserialize<'de> for AddStaffCmd
impl<'de> Deserialize<'de> for AddStaffCmd
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 AddStaffCmd
impl RefUnwindSafe for AddStaffCmd
impl Send for AddStaffCmd
impl Sync for AddStaffCmd
impl Unpin for AddStaffCmd
impl UnsafeUnpin for AddStaffCmd
impl UnwindSafe for AddStaffCmd
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