pub struct Lyrics {
pub metadata: BTreeSet<IDTag>,
/* private fields */
}
Fields§
§metadata: BTreeSet<IDTag>
Metadata about this lyrics.
Implementations§
source§impl Lyrics
impl Lyrics
pub fn add_line<S: Into<String>>(&mut self, line: S) -> Result<(), LyricsError>
pub fn add_timed_line<S: Into<String>>( &mut self, time_tag: TimeTag, line: S ) -> Result<(), LyricsError>
source§impl Lyrics
impl Lyrics
pub fn get_lines(&self) -> &[String]
pub fn get_timed_lines(&self) -> &[(TimeTag, Rc<str>)]
pub fn remove_line(&mut self, index: usize) -> String
pub fn remove_timed_line(&mut self, index: usize) -> (TimeTag, Rc<str>)
pub fn find_timed_line_index<N: Into<i64>>(&self, timestamp: N) -> Option<usize>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Lyrics
impl !Send for Lyrics
impl !Sync for Lyrics
impl Unpin for Lyrics
impl UnwindSafe for Lyrics
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