pub struct SubRipEvent {
pub line_number: usize,
pub text: String,
pub start: Moment,
pub end: Moment,
pub coordinates: Option<String>,
}Expand description
SubRip subtitle event
Fields§
§line_number: usizeLine number for the event. Generally this should be a sequential range of numbers, from 1 to however many lines there are.
text: StringTextual content of the event.
start: MomentStart time of event
end: MomentEnd time of event
coordinates: Option<String>Coordinates for positioning of subtitle text
Trait Implementations§
Source§impl Clone for SubRipEvent
impl Clone for SubRipEvent
Source§fn clone(&self) -> SubRipEvent
fn clone(&self) -> SubRipEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubRipEvent
impl Debug for SubRipEvent
Source§impl Display for SubRipEvent
impl Display for SubRipEvent
Source§impl TextEvent for SubRipEvent
impl TextEvent for SubRipEvent
Source§fn unformatted_text(&self) -> Cow<'_, String>
fn unformatted_text(&self) -> Cow<'_, String>
Get text content with all formatting tags removed
Source§fn strip_formatting(&mut self)
fn strip_formatting(&mut self)
Remove all formatting tags from event text
Source§impl TextEventInterface for SubRipEvent
impl TextEventInterface for SubRipEvent
Source§impl TimedEvent for SubRipEvent
impl TimedEvent for SubRipEvent
Auto Trait Implementations§
impl Freeze for SubRipEvent
impl RefUnwindSafe for SubRipEvent
impl Send for SubRipEvent
impl Sync for SubRipEvent
impl Unpin for SubRipEvent
impl UnwindSafe for SubRipEvent
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