pub struct MdvdFile { /* private fields */ }
Expand description
Represents a reconstructable .sub
(MicroDVD
) file.
Implementations§
Trait Implementations§
Source§impl From<MdvdFile> for SubtitleFile
impl From<MdvdFile> for SubtitleFile
Source§fn from(f: MdvdFile) -> SubtitleFile
fn from(f: MdvdFile) -> SubtitleFile
Converts to this type from the input type.
Source§impl SubtitleFileInterface for MdvdFile
impl SubtitleFileInterface for MdvdFile
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 MdvdFile
impl RefUnwindSafe for MdvdFile
impl Send for MdvdFile
impl Sync for MdvdFile
impl Unpin for MdvdFile
impl UnwindSafe for MdvdFile
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