pub struct JoinedNote {
pub pitch: Option<usize>,
pub length: usize,
}Expand description
One note or rest a run of pitches makes: the by-position twin of
join_consecutive_identical_pitches.
Fields§
§pitch: Option<usize>Which of the pitches it sounds, or none where it is a rest.
length: usizeHow many pitches it stands for.
Trait Implementations§
Source§impl Clone for JoinedNote
impl Clone for JoinedNote
impl Copy for JoinedNote
Source§impl Debug for JoinedNote
impl Debug for JoinedNote
Source§impl<'de> Deserialize<'de> for JoinedNote
Available on crate feature serde only.
impl<'de> Deserialize<'de> for JoinedNote
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 JoinedNote
Source§impl PartialEq for JoinedNote
impl PartialEq for JoinedNote
Source§impl Serialize for JoinedNote
Available on crate feature serde only.
impl Serialize for JoinedNote
Available on crate feature
serde only.impl StructuralPartialEq for JoinedNote
Auto Trait Implementations§
impl Forget for JoinedNote
impl Freeze for JoinedNote
impl RefUnwindSafe for JoinedNote
impl Send for JoinedNote
impl Sync for JoinedNote
impl Unpin for JoinedNote
impl UnsafeUnpin for JoinedNote
impl UnwindSafe for JoinedNote
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