pub struct AlignedLine {
pub text: String,
pub start_s: f64,
pub end_s: f64,
pub section: String,
pub words: Vec<AlignedLineWord>,
}Expand description
One aligned line: its text, span, section label, and nested words.
Fields§
§text: String§start_s: f64§end_s: f64§section: StringStructural section label (e.g. Verse 1, Chorus), empty when absent.
words: Vec<AlignedLineWord>Trait Implementations§
Source§impl Clone for AlignedLine
impl Clone for AlignedLine
Source§fn clone(&self) -> AlignedLine
fn clone(&self) -> AlignedLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlignedLine
impl Debug for AlignedLine
Source§impl PartialEq for AlignedLine
impl PartialEq for AlignedLine
Source§fn eq(&self, other: &AlignedLine) -> bool
fn eq(&self, other: &AlignedLine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlignedLine
Auto Trait Implementations§
impl Freeze for AlignedLine
impl RefUnwindSafe for AlignedLine
impl Send for AlignedLine
impl Sync for AlignedLine
impl Unpin for AlignedLine
impl UnsafeUnpin for AlignedLine
impl UnwindSafe for AlignedLine
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