Struct subparse::SsaFile
[−]
[src]
pub struct SsaFile { /* fields omitted */ }
Represents a reconstructable .ssa
/.ass
file.
All unimportant information (for this project) are saved into SsaFilePart::Filler(...)
, so
a timespan-altered file still has the same field etc.
Trait Implementations
impl ParseSubtitleString for SsaFile
[src]
fn parse_from_string(s: String) -> SubtitleParserResult<SsaFile>
Parse the subtitle from text.
impl Debug for SsaFile
[src]
impl Clone for SsaFile
[src]
fn clone(&self) -> SsaFile
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 SsaFile
[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,
new_subtitle_entries: &[SubtitleEntry])
-> SubtitleParserResult<()>
new_subtitle_entries: &[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