pub struct LyricSpan {
pub text: String,
pub indices: Range<usize>,
}Expand description
A stretch of lyrics a search found, as the text found and the run of
LyricSearcher::indexed entries it touches: the by-position twin of
LyricMatch.
Fields§
§text: StringThe text found, which for a search of a plain string is that string.
indices: Range<usize>The entries of LyricSearcher::indexed the text is sung to, which
are always a run: the index is in the order the text reads.
Trait Implementations§
impl Eq for LyricSpan
impl StructuralPartialEq for LyricSpan
Auto Trait Implementations§
impl Forget for LyricSpan
impl Freeze for LyricSpan
impl RefUnwindSafe for LyricSpan
impl Send for LyricSpan
impl Sync for LyricSpan
impl Unpin for LyricSpan
impl UnsafeUnpin for LyricSpan
impl UnwindSafe for LyricSpan
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