pub struct IndexedLyric<'a> {
pub element: &'a StreamElement,
pub start: usize,
pub end: usize,
pub measure: Option<IntegerType>,
pub lyric: &'a Lyric,
pub text: String,
pub identifier: LyricIdentifier,
pub absolute_start: usize,
pub absolute_end: usize,
}Expand description
One lyric of a stream and where its text sits in the text searched:
music21’s IndexedLyric. Positions count characters, as Python’s do.
Fields§
§element: &'a StreamElementThe note or chord the lyric is sung to.
start: usizeWhere the lyric starts in its verse’s text.
end: usizeWhere it ends in its verse’s text.
measure: Option<IntegerType>The number of the measure the note is in, if it is in one.
lyric: &'a LyricThe lyric itself.
text: StringIts text.
identifier: LyricIdentifierIts verse.
absolute_start: usizeWhere it starts in the text of every verse.
absolute_end: usizeWhere it ends in the text of every verse.
Trait Implementations§
Source§impl<'a> Clone for IndexedLyric<'a>
impl<'a> Clone for IndexedLyric<'a>
Auto Trait Implementations§
impl<'a> Freeze for IndexedLyric<'a>
impl<'a> RefUnwindSafe for IndexedLyric<'a>
impl<'a> Send for IndexedLyric<'a>
impl<'a> Sync for IndexedLyric<'a>
impl<'a> Unpin for IndexedLyric<'a>
impl<'a> UnsafeUnpin for IndexedLyric<'a>
impl<'a> UnwindSafe for IndexedLyric<'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