pub struct IdxFile { /* private fields */ }Expand description
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.
Implementations§
Trait Implementations§
Source§impl From<IdxFile> for SubtitleFile
impl From<IdxFile> for SubtitleFile
Source§fn from(f: IdxFile) -> SubtitleFile
fn from(f: IdxFile) -> SubtitleFile
Converts to this type from the input type.
Source§impl SubtitleFileInterface for IdxFile
impl SubtitleFileInterface for IdxFile
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,
ts: &[SubtitleEntry],
) -> SubtitleParserResult<()>
fn update_subtitle_entries( &mut self, ts: &[SubtitleEntry], ) -> SubtitleParserResult<()>
Set the entries from the subtitle entries from the
get_subtitle_entries(). Read moreAuto Trait Implementations§
impl Freeze for IdxFile
impl RefUnwindSafe for IdxFile
impl Send for IdxFile
impl Sync for IdxFile
impl Unpin for IdxFile
impl UnwindSafe for IdxFile
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