Struct subparse::VobFile
[−]
[src]
pub struct VobFile { /* fields omitted */ }
Represents a .sub
(VobSub
) file.
Methods
impl VobFile
[src]
fn parse(b: &[u8]) -> SubtitleParserResult<Self>
[src]
Parse contents of a VobSub
.sub
file to VobFile
.
Trait Implementations
impl Debug for VobFile
[src]
impl Clone for VobFile
[src]
fn clone(&self) -> VobFile
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl SubtitleFile for VobFile
[src]
fn get_subtitle_entries(&self) -> SubtitleParserResult<Vec<SubtitleEntry>>
[src]
The subtitle entries can be changed by calling update_subtitle_entries()
.
fn update_subtitle_entries(
&mut self,
_: &[SubtitleEntry]
) -> SubtitleParserResult<()>
[src]
&mut self,
_: &[SubtitleEntry]
) -> SubtitleParserResult<()>
Set the entries from the subtitle entries from the get_subtitle_entries()
. Read more
fn to_data(&self) -> SubtitleParserResult<Vec<u8>>
[src]
Returns a byte-stream in the respective format (.ssa, .srt, etc.) with the (probably) altered information. Read more