pub struct StaffGroup {
pub first_staff: usize,
pub last_staff: usize,
pub symbol: PartGroupSymbol,
pub barlines_connect: bool,
}Expand description
Groups a range of adjacent staves within one part.
This is distinct from PartGroup, which groups separate parts. The
distinction matters for MEI and MuseScore sources where a piano-like part
can contain several staves and nested staff groups.
Fields§
§first_staff: usizeIndex of the first staff in the group (inclusive).
last_staff: usizeIndex of the last staff in the group (inclusive).
symbol: PartGroupSymbol§barlines_connect: boolWhether barlines are connected across all staves in the group.
Trait Implementations§
Source§impl Clone for StaffGroup
impl Clone for StaffGroup
Source§fn clone(&self) -> StaffGroup
fn clone(&self) -> StaffGroup
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 StaffGroup
impl Debug for StaffGroup
Source§impl<'de> Deserialize<'de> for StaffGroup
impl<'de> Deserialize<'de> for StaffGroup
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
Source§impl PartialEq for StaffGroup
impl PartialEq for StaffGroup
Source§impl Serialize for StaffGroup
impl Serialize for StaffGroup
impl StructuralPartialEq for StaffGroup
Auto Trait Implementations§
impl Freeze for StaffGroup
impl RefUnwindSafe for StaffGroup
impl Send for StaffGroup
impl Sync for StaffGroup
impl Unpin for StaffGroup
impl UnsafeUnpin for StaffGroup
impl UnwindSafe for StaffGroup
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