pub struct SubtitleEntry {
pub sequence: u32,
pub start_ms: u64,
pub end_ms: u64,
pub text: String,
}Expand description
A single subtitle entry parsed from SRT format.
Fields§
§sequence: u32Sequence number (1-based).
start_ms: u64Start time in milliseconds.
end_ms: u64End time in milliseconds.
text: StringText content (may contain multiple lines separated by ‘\n’).
Trait Implementations§
Source§impl Clone for SubtitleEntry
impl Clone for SubtitleEntry
Source§fn clone(&self) -> SubtitleEntry
fn clone(&self) -> SubtitleEntry
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SubtitleEntry
impl Debug for SubtitleEntry
Source§impl PartialEq for SubtitleEntry
impl PartialEq for SubtitleEntry
impl Eq for SubtitleEntry
impl StructuralPartialEq for SubtitleEntry
Auto Trait Implementations§
impl Freeze for SubtitleEntry
impl RefUnwindSafe for SubtitleEntry
impl Send for SubtitleEntry
impl Sync for SubtitleEntry
impl Unpin for SubtitleEntry
impl UnwindSafe for SubtitleEntry
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)