Struct subparse::IdxFile
[−]
[src]
pub struct IdxFile { /* fields omitted */ }Represents a reconstructable .idx file.
All (for this project) unimportant information are saved into IdxFilePart::Filler(...), so
a timespan-altered file still has the same meta-information.
Trait Implementations
impl Debug for IdxFile[src]
impl Clone for IdxFile[src]
fn clone(&self) -> IdxFile
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl SubtitleFile for IdxFile[src]
fn get_subtitle_entries(&self) -> SubtitleParserResult<Vec<SubtitleEntry>>
The subtitle entries can be changed by calling update_subtitle_entries().
fn update_subtitle_entries(&mut self,
ts: &[SubtitleEntry])
-> SubtitleParserResult<()>
ts: &[SubtitleEntry])
-> SubtitleParserResult<()>
Set the entries from the subtitle entries from the get_subtitle_entries(). Read more
fn to_data(&self) -> SubtitleParserResult<Vec<u8>>
Returns a byte-stream in the respective format (.ssa, .srt, etc.) with the (probably) altered information. Read more
impl ParseSubtitleString for IdxFile[src]
fn parse_from_string(s: String) -> SubtitleParserResult<IdxFile>
Parse the subtitle from text.