Struct id3::frame::SynchronisedLyrics
source · pub struct SynchronisedLyrics {
pub lang: String,
pub timestamp_format: TimestampFormat,
pub content_type: SynchronisedLyricsType,
pub description: String,
pub content: Vec<(u32, String)>,
}
Expand description
The parsed contents of an synchronized lyrics frame.
Fields§
§lang: String
§timestamp_format: TimestampFormat
§content_type: SynchronisedLyricsType
§description: String
§content: Vec<(u32, String)>
Implementations§
source§impl SynchronisedLyrics
impl SynchronisedLyrics
sourcepub fn fmt_table(&self, writer: impl Write) -> Result<()>
pub fn fmt_table(&self, writer: impl Write) -> Result<()>
Write the lyrics to the provided writer
as a plain text table.
A typical table might look like:
Timecode Lyrics
00:00:12.123 Song line one
00:00:22.456 Song line two
…
§Errors
This function will return any I/O error reported while formatting.
Trait Implementations§
source§impl Clone for SynchronisedLyrics
impl Clone for SynchronisedLyrics
source§fn clone(&self) -> SynchronisedLyrics
fn clone(&self) -> SynchronisedLyrics
Returns a copy of the value. Read more
1.0.0 · 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 SynchronisedLyrics
impl Debug for SynchronisedLyrics
source§impl From<SynchronisedLyrics> for Frame
impl From<SynchronisedLyrics> for Frame
source§fn from(c: SynchronisedLyrics) -> Self
fn from(c: SynchronisedLyrics) -> Self
Converts to this type from the input type.
source§impl Hash for SynchronisedLyrics
impl Hash for SynchronisedLyrics
source§impl Ord for SynchronisedLyrics
impl Ord for SynchronisedLyrics
source§fn cmp(&self, other: &SynchronisedLyrics) -> Ordering
fn cmp(&self, other: &SynchronisedLyrics) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SynchronisedLyrics
impl PartialEq for SynchronisedLyrics
source§fn eq(&self, other: &SynchronisedLyrics) -> bool
fn eq(&self, other: &SynchronisedLyrics) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SynchronisedLyrics
impl PartialOrd for SynchronisedLyrics
source§fn partial_cmp(&self, other: &SynchronisedLyrics) -> Option<Ordering>
fn partial_cmp(&self, other: &SynchronisedLyrics) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for SynchronisedLyrics
impl StructuralPartialEq for SynchronisedLyrics
Auto Trait Implementations§
impl RefUnwindSafe for SynchronisedLyrics
impl Send for SynchronisedLyrics
impl Sync for SynchronisedLyrics
impl Unpin for SynchronisedLyrics
impl UnwindSafe for SynchronisedLyrics
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