[−][src]Struct lrc::Lyrics
Fields
metadata: BTreeSet<IDTag>
Metadata about this lyrics.
Methods
impl Lyrics
[src]
impl Lyrics
[src]
pub fn from_str<S: AsRef<str>>(s: S) -> Result<Lyrics, LyricsError>
[src]
Create a Lyrics
instance with a string.
impl Lyrics
[src]
pub fn add_line<S: Into<String>>(&mut self, line: S) -> Result<(), LyricsError>
[src]
pub fn add_timed_line<S: Into<String>>(
&mut self,
time_tag: TimeTag,
line: S
) -> Result<(), LyricsError>
[src]
&mut self,
time_tag: TimeTag,
line: S
) -> Result<(), LyricsError>
pub fn add_line_with_multiple_time_tags<S: Into<String>>(
&mut self,
time_tags: &[TimeTag],
line: S
) -> Result<(), LyricsError>
[src]
&mut self,
time_tags: &[TimeTag],
line: S
) -> Result<(), LyricsError>
impl Lyrics
[src]
pub fn get_lines(&self) -> &[String]
[src]
pub fn get_timed_lines(&self) -> &[(TimeTag, Rc<str>)]
[src]
pub fn remove_line(&mut self, index: usize) -> String
[src]
pub fn remove_timed_line(&mut self, index: usize) -> (TimeTag, Rc<str>)
[src]
pub fn find_timed_line_index<N: Into<i64>>(&self, timestamp: N) -> Option<usize>
[src]
Trait Implementations
impl Clone for Lyrics
[src]
impl Debug for Lyrics
[src]
impl Default for Lyrics
[src]
impl Display for Lyrics
[src]
impl FromStr for Lyrics
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,