pub enum PedalObjectKind {
Bounce,
GapStart,
GapEnd,
}Expand description
Which of music21’s pedal objects a PedalObject is.
Variants§
Bounce
The pedal let up and put down again at once: music21’s
PedalBounce.
GapStart
Where the pedal line stops being drawn while the pedalling goes on,
usually beside simile: music21’s PedalGapStart.
GapEnd
Where the pedal line is drawn again: music21’s PedalGapEnd.
Implementations§
Source§impl PedalObjectKind
impl PedalObjectKind
Sourcepub fn class_name(self) -> &'static str
pub fn class_name(self) -> &'static str
music21’s class name for it.
Sourcepub fn from_class_name(name: &str) -> Option<Self>
pub fn from_class_name(name: &str) -> Option<Self>
Reads music21’s class name for one.
Trait Implementations§
Source§impl Clone for PedalObjectKind
impl Clone for PedalObjectKind
impl Copy for PedalObjectKind
Source§impl Debug for PedalObjectKind
impl Debug for PedalObjectKind
Source§impl<'de> Deserialize<'de> for PedalObjectKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PedalObjectKind
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 PedalObjectKind
Source§impl Hash for PedalObjectKind
impl Hash for PedalObjectKind
Source§impl PartialEq for PedalObjectKind
impl PartialEq for PedalObjectKind
Source§impl Serialize for PedalObjectKind
Available on crate feature serde only.
impl Serialize for PedalObjectKind
Available on crate feature
serde only.impl StructuralPartialEq for PedalObjectKind
Auto Trait Implementations§
impl Freeze for PedalObjectKind
impl RefUnwindSafe for PedalObjectKind
impl Send for PedalObjectKind
impl Sync for PedalObjectKind
impl Unpin for PedalObjectKind
impl UnsafeUnpin for PedalObjectKind
impl UnwindSafe for PedalObjectKind
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