pub struct PedalObject { /* private fields */ }Expand description
A moment inside a held pedal – a bounce, or a gap in its line – which
stands in the stream at its own offset and is joined by the pedal mark
it belongs to: music21’s PedalObject.
Implementations§
Source§impl PedalObject
impl PedalObject
Sourcepub fn new(kind: PedalObjectKind) -> Self
pub fn new(kind: PedalObjectKind) -> Self
A pedal object of a kind.
Sourcepub fn kind(&self) -> PedalObjectKind
pub fn kind(&self) -> PedalObjectKind
Which kind it is.
Sourcepub fn placement(&self) -> Option<Placement>
pub fn placement(&self) -> Option<Placement>
Which side of the staff it is drawn 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 it is drawn on.
Trait Implementations§
Source§impl Clone for PedalObject
impl Clone for PedalObject
Source§impl Debug for PedalObject
impl Debug for PedalObject
Source§impl<'de> Deserialize<'de> for PedalObject
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PedalObject
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 PedalObject
Source§impl From<PedalObject> for StreamElement
impl From<PedalObject> for StreamElement
Source§fn from(value: PedalObject) -> Self
fn from(value: PedalObject) -> Self
Converts to this type from the input type.
Source§impl Hash for PedalObject
impl Hash for PedalObject
Source§impl PartialEq for PedalObject
impl PartialEq for PedalObject
Source§impl Serialize for PedalObject
Available on crate feature serde only.
impl Serialize for PedalObject
Available on crate feature
serde only.impl StructuralPartialEq for PedalObject
Auto Trait Implementations§
impl Freeze for PedalObject
impl RefUnwindSafe for PedalObject
impl Send for PedalObject
impl Sync for PedalObject
impl Unpin for PedalObject
impl UnsafeUnpin for PedalObject
impl UnwindSafe for PedalObject
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