pub struct Line {
pub at_ms: Option<u64>,
pub text: String,
}Expand description
One line, with the moment it is sung when the file says so.
Fields§
§at_ms: Option<u64>Milliseconds from the start of the track, or None on a plain line.
Offsets in LRC input have already been applied. A player uses its decoded-track position, including a seek offset, to follow these times.
text: StringThe line as written, without its timestamp when it could be expanded safely. Invalid or excessive timestamps remain literal text on an untimed line.
Trait Implementations§
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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