pub struct RehearsalMark { /* private fields */ }Expand description
A letter or number marking a place to rehearse from: music21’s
RehearsalMark.
Implementations§
Source§impl RehearsalMark
impl RehearsalMark
Sourcepub fn set_content(&mut self, content: impl Into<String>)
pub fn set_content(&mut self, content: impl Into<String>)
Changes what the mark reads.
Sourcepub fn placement(&self) -> Option<Placement>
pub fn placement(&self) -> Option<Placement>
Which side of the staff the mark is written on, where the score says.
Sourcepub fn set_placement(&mut self, placement: Option<Placement>)
pub fn set_placement(&mut self, placement: Option<Placement>)
Says which side of the staff the mark is written on.
Sourcepub fn enclosure(&self) -> Option<&str>
pub fn enclosure(&self) -> Option<&str>
What is drawn round the mark, square or circle, where the score
says: music21’s style.enclosure.
Sourcepub fn set_enclosure(&mut self, enclosure: Option<String>)
pub fn set_enclosure(&mut self, enclosure: Option<String>)
Says what is drawn round the mark.
Trait Implementations§
Source§impl Clone for RehearsalMark
impl Clone for RehearsalMark
Source§impl Debug for RehearsalMark
impl Debug for RehearsalMark
Source§impl Default for RehearsalMark
impl Default for RehearsalMark
Source§impl<'de> Deserialize<'de> for RehearsalMark
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RehearsalMark
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 RehearsalMark
Source§impl From<RehearsalMark> for StreamElement
impl From<RehearsalMark> for StreamElement
Source§fn from(value: RehearsalMark) -> Self
fn from(value: RehearsalMark) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RehearsalMark
impl PartialEq for RehearsalMark
Source§impl Serialize for RehearsalMark
Available on crate feature serde only.
impl Serialize for RehearsalMark
Available on crate feature
serde only.impl StructuralPartialEq for RehearsalMark
Auto Trait Implementations§
impl Freeze for RehearsalMark
impl RefUnwindSafe for RehearsalMark
impl Send for RehearsalMark
impl Sync for RehearsalMark
impl Unpin for RehearsalMark
impl UnsafeUnpin for RehearsalMark
impl UnwindSafe for RehearsalMark
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