pub struct GlobalComment { /* private fields */ }Expand description
A comment on the whole table, kept in the score where it was written:
music21’s GlobalComment.
Its priority is the one music21 gives it, which puts it before the music standing at its offset.
use music21::humdrum::GlobalComment;
let comment = GlobalComment::new("transcribed by hand", -37);
assert_eq!(comment.comment(), "transcribed by hand");
assert_eq!(comment.priority(), -37);Implementations§
Source§impl GlobalComment
impl GlobalComment
Trait Implementations§
Source§impl Clone for GlobalComment
impl Clone for GlobalComment
Source§impl Debug for GlobalComment
impl Debug for GlobalComment
Source§impl Default for GlobalComment
impl Default for GlobalComment
Source§impl<'de> Deserialize<'de> for GlobalComment
Available on crate feature serde only.
impl<'de> Deserialize<'de> for GlobalComment
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 GlobalComment
Source§impl From<GlobalComment> for StreamElement
impl From<GlobalComment> for StreamElement
Source§fn from(value: GlobalComment) -> Self
fn from(value: GlobalComment) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GlobalComment
impl PartialEq for GlobalComment
Source§impl Serialize for GlobalComment
Available on crate feature serde only.
impl Serialize for GlobalComment
Available on crate feature
serde only.impl StructuralPartialEq for GlobalComment
Auto Trait Implementations§
impl Forget for GlobalComment
impl Freeze for GlobalComment
impl RefUnwindSafe for GlobalComment
impl Send for GlobalComment
impl Sync for GlobalComment
impl Unpin for GlobalComment
impl UnsafeUnpin for GlobalComment
impl UnwindSafe for GlobalComment
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