pub struct PartGroup {
pub name: String,
pub color: String,
pub matches: Option<Vec<String>>,
}Expand description
A group of a score’s parts drawn as one: music21’s partGroups entry.
Fields§
§name: StringThe group’s name, which is also its id in what is drawn.
color: StringThe colour the group is drawn in.
matches: Option<Vec<String>>What a part’s id must hold as a whole word, ignoring case, for the part to be in the group: the name where nothing is given. music21 reads each as a regular expression; here each is read as written, as music21 reads one with no pattern characters.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PartGroup
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PartGroup
Available on crate feature
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PartGroup
impl StructuralPartialEq for PartGroup
Auto Trait Implementations§
impl Freeze for PartGroup
impl RefUnwindSafe for PartGroup
impl Send for PartGroup
impl Sync for PartGroup
impl Unpin for PartGroup
impl UnsafeUnpin for PartGroup
impl UnwindSafe for PartGroup
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
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> ⓘ
Converts
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> ⓘ
Converts
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