pub struct LyricMatch<'a> {
pub measure_start: Option<IntegerType>,
pub measure_end: Option<IntegerType>,
pub text: String,
pub indices: Vec<IndexedLyric<'a>>,
pub identifier: LyricIdentifier,
}Expand description
A stretch of lyrics a search found: music21’s search.lyrics
SearchMatch.
Fields§
§measure_start: Option<IntegerType>The measure of the first lyric matched, if it is in one.
measure_end: Option<IntegerType>The measure of the last.
text: StringThe text matched.
indices: Vec<IndexedLyric<'a>>Every lyric the match touches.
identifier: LyricIdentifierThe verse of the first.
Implementations§
Source§impl<'a> LyricMatch<'a>
impl<'a> LyricMatch<'a>
Sourcepub fn elements(&self) -> Vec<&'a StreamElement>
pub fn elements(&self) -> Vec<&'a StreamElement>
The notes and chords the matched lyrics are sung to.
Trait Implementations§
Source§impl<'a> Clone for LyricMatch<'a>
impl<'a> Clone for LyricMatch<'a>
Auto Trait Implementations§
impl<'a> Freeze for LyricMatch<'a>
impl<'a> RefUnwindSafe for LyricMatch<'a>
impl<'a> Send for LyricMatch<'a>
impl<'a> Sync for LyricMatch<'a>
impl<'a> Unpin for LyricMatch<'a>
impl<'a> UnsafeUnpin for LyricMatch<'a>
impl<'a> UnwindSafe for LyricMatch<'a>
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,
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