Struct aspasia::MicroDvdSubtitle
source · pub struct MicroDvdSubtitle { /* private fields */ }
Expand description
Unmodified MicroDVD subtitle, with events timed in terms of frames.
This is not well supported, so things like conversion are not implemented for this type.
If possible, use of MicroDvdSubtitle
, which represents subtitle events using actual timestamps, is better supported.
Implementations§
source§impl MicroDvdSubtitle
impl MicroDvdSubtitle
sourcepub fn from_events(events: Vec<MicroDvdEvent>) -> Self
pub fn from_events(events: Vec<MicroDvdEvent>) -> Self
Create new instance from already existing list of MicroDvdEvent
s.
Trait Implementations§
source§impl Debug for MicroDvdSubtitle
impl Debug for MicroDvdSubtitle
source§impl Display for MicroDvdSubtitle
impl Display for MicroDvdSubtitle
source§impl From<&TimedMicroDvdSubtitle> for MicroDvdSubtitle
impl From<&TimedMicroDvdSubtitle> for MicroDvdSubtitle
source§fn from(value: &TimedMicroDvdSubtitle) -> Self
fn from(value: &TimedMicroDvdSubtitle) -> Self
Converts to this type from the input type.
source§impl FromStr for MicroDvdSubtitle
impl FromStr for MicroDvdSubtitle
source§impl Subtitle for MicroDvdSubtitle
impl Subtitle for MicroDvdSubtitle
§type Event = MicroDvdEvent
type Event = MicroDvdEvent
Event type for the given subtitle format
source§fn from_path_with_encoding(
path: impl AsRef<Path>,
encoding: Option<&'static Encoding>
) -> Result<Self, Error>
fn from_path_with_encoding( path: impl AsRef<Path>, encoding: Option<&'static Encoding> ) -> Result<Self, Error>
Load subtitle format from path using the given encoding Read more
source§fn events_mut(&mut self) -> &mut [Self::Event]
fn events_mut(&mut self) -> &mut [Self::Event]
Get list of events as a mutable slice
source§fn from_path(path: impl AsRef<Path>) -> Result<Self, Error>
fn from_path(path: impl AsRef<Path>) -> Result<Self, Error>
Load subtitle from given path.
Automatically attempts to detect the encoding to use from the file contents. Read more
source§impl TextSubtitle for MicroDvdSubtitle
impl TextSubtitle for MicroDvdSubtitle
source§fn strip_formatting(&mut self)
fn strip_formatting(&mut self)
Remove all styling/formatting information from the text and subtitle metadata
Auto Trait Implementations§
impl RefUnwindSafe for MicroDvdSubtitle
impl Send for MicroDvdSubtitle
impl Sync for MicroDvdSubtitle
impl Unpin for MicroDvdSubtitle
impl UnwindSafe for MicroDvdSubtitle
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