pub struct Cue {
pub at_ms: u64,
pub line_indices: Vec<usize>,
}Expand description
All lyric lines beginning at one moment in a track.
A cue remains active until the next cue, or through the end of the track. A cue containing only empty text deliberately clears the previous words.
Fields§
§at_ms: u64Milliseconds from the beginning of the decoded track.
This is the same time base as super::Line::at_ms. Seeking retains
that origin; changing the output sample rate does not restart it. The
parser has already applied any LRC offset, so clients must not apply it
a second time.
line_indices: Vec<usize>Zero-based indices into the original Lyrics::lines, in source order.
Equal timestamps share a cue, including repeated timestamps and blank lines. The referenced lyrics must remain unchanged while these indices are used; rebuild the timeline after editing or replacing them.
Trait Implementations§
impl Eq for Cue
impl StructuralPartialEq for Cue
Auto Trait Implementations§
impl Freeze for Cue
impl RefUnwindSafe for Cue
impl Send for Cue
impl Sync for Cue
impl Unpin for Cue
impl UnwindSafe for Cue
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