pub struct StaffGroup { /* private fields */ }Expand description
Parts of a score bracketed together: music21’s layout.StaffGroup,
which holds the parts it spans.
The parts are named by where they stand among the score’s parts, first to last, in the order the group was given them.
Implementations§
Source§impl StaffGroup
impl StaffGroup
Sourcepub fn new(parts: Vec<usize>) -> Self
pub fn new(parts: Vec<usize>) -> Self
A group of the parts at these positions, barred together and drawn with no symbol, as music21’s starts out.
Sourcepub fn abbreviation(&self) -> Option<&str>
pub fn abbreviation(&self) -> Option<&str>
The group’s short name.
Sourcepub fn set_abbreviation(&mut self, abbreviation: Option<String>)
pub fn set_abbreviation(&mut self, abbreviation: Option<String>)
Sets the short name, or clears it.
Sourcepub fn symbol(&self) -> Option<&str>
pub fn symbol(&self) -> Option<&str>
What the group is drawn with: bracket, brace, line or square.
Sourcepub fn set_symbol(&mut self, symbol: Option<&str>) -> Result<()>
pub fn set_symbol(&mut self, symbol: Option<&str>) -> Result<()>
Sets what the group is drawn with. As in music21, none in any case
clears it, and anything but the four symbols is refused.
Sourcepub fn bar_together(&self) -> Option<BarTogether>
pub fn bar_together(&self) -> Option<BarTogether>
How the group’s barlines are drawn, where that has been said.
Sourcepub fn set_bar_together(&mut self, bar_together: Option<BarTogether>)
pub fn set_bar_together(&mut self, bar_together: Option<BarTogether>)
Says how the group’s barlines are drawn.
Whether the name is left unprinted: music21’s hideObjectOnPrint.
Says whether the name is left unprinted.
Trait Implementations§
Source§impl Clone for StaffGroup
impl Clone for StaffGroup
Source§impl Debug for StaffGroup
impl Debug for StaffGroup
Source§impl<'de> Deserialize<'de> for StaffGroup
Available on crate feature serde only.
impl<'de> Deserialize<'de> for StaffGroup
serde only.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>,
impl Eq for StaffGroup
Source§impl PartialEq for StaffGroup
impl PartialEq for StaffGroup
Source§impl Serialize for StaffGroup
Available on crate feature serde only.
impl Serialize for StaffGroup
serde only.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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more