pub struct SsaFile { /* private fields */ }
Expand description
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.
Implementations§
Trait Implementations§
Source§impl From<SsaFile> for SubtitleFile
impl From<SsaFile> for SubtitleFile
Source§fn from(f: SsaFile) -> SubtitleFile
fn from(f: SsaFile) -> SubtitleFile
Converts to this type from the input type.
Source§impl SubtitleFileInterface for SsaFile
impl SubtitleFileInterface for SsaFile
Source§fn get_subtitle_entries(&self) -> SubtitleParserResult<Vec<SubtitleEntry>>
fn get_subtitle_entries(&self) -> SubtitleParserResult<Vec<SubtitleEntry>>
The subtitle entries can be changed by calling
update_subtitle_entries()
.Source§fn update_subtitle_entries(
&mut self,
new_subtitle_entries: &[SubtitleEntry],
) -> SubtitleParserResult<()>
fn update_subtitle_entries( &mut self, new_subtitle_entries: &[SubtitleEntry], ) -> SubtitleParserResult<()>
Set the entries from the subtitle entries from the
get_subtitle_entries()
. Read moreAuto Trait Implementations§
impl Freeze for SsaFile
impl RefUnwindSafe for SsaFile
impl Send for SsaFile
impl Sync for SsaFile
impl Unpin for SsaFile
impl UnwindSafe for SsaFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more