pub struct SpineComment { /* private fields */ }Expand description
A ! comment in one spine, kept where it was written: music21’s
SpineComment. Its priority, the line it was written on, is the
event’s.
use music21::humdrum::SpineComment;
assert_eq!(SpineComment::new("Cantus").comment(), "Cantus");Implementations§
Trait Implementations§
Source§impl Clone for SpineComment
impl Clone for SpineComment
Source§impl Debug for SpineComment
impl Debug for SpineComment
Source§impl Default for SpineComment
impl Default for SpineComment
Source§impl<'de> Deserialize<'de> for SpineComment
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SpineComment
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 SpineComment
Source§impl From<SpineComment> for StreamElement
impl From<SpineComment> for StreamElement
Source§fn from(value: SpineComment) -> Self
fn from(value: SpineComment) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SpineComment
impl PartialEq for SpineComment
Source§impl Serialize for SpineComment
Available on crate feature serde only.
impl Serialize for SpineComment
Available on crate feature
serde only.impl StructuralPartialEq for SpineComment
Auto Trait Implementations§
impl Forget for SpineComment
impl Freeze for SpineComment
impl RefUnwindSafe for SpineComment
impl Send for SpineComment
impl Sync for SpineComment
impl Unpin for SpineComment
impl UnsafeUnpin for SpineComment
impl UnwindSafe for SpineComment
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