Struct subparse::SrtFile [−][src]
Represents a .srt
file.
Implementations
impl SrtFile
[src]
pub fn parse(s: &str) -> SubtitleParserResult<SrtFile>
[src]
Parse a .srt
subtitle string to SrtFile
.
impl SrtFile
[src]
pub fn create(v: Vec<(TimeSpan, String)>) -> SubtitleParserResult<SrtFile>
[src]
Creates .srt file from scratch.
Trait Implementations
impl Clone for SrtFile
[src]
impl Debug for SrtFile
[src]
impl From<SrtFile> for SubtitleFile
[src]
fn from(f: SrtFile) -> SubtitleFile
[src]
impl SubtitleFileInterface for SrtFile
[src]
fn get_subtitle_entries(&self) -> SubtitleParserResult<Vec<SubtitleEntry>>
[src]
fn update_subtitle_entries(
&mut self,
new_subtitle_entries: &[SubtitleEntry]
) -> SubtitleParserResult<()>
[src]
&mut self,
new_subtitle_entries: &[SubtitleEntry]
) -> SubtitleParserResult<()>
fn to_data(&self) -> SubtitleParserResult<Vec<u8>>
[src]
Auto Trait Implementations
impl RefUnwindSafe for SrtFile
impl Send for SrtFile
impl Sync for SrtFile
impl Unpin for SrtFile
impl UnwindSafe for SrtFile
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,