pub struct SubtitleFile {
pub subtitles: Vec<Subtitle>,
}Expand description
Represents a full subtitle file containing multiple subtitle entries
Fields§
§subtitles: Vec<Subtitle>Implementations§
Source§impl SubtitleFile
impl SubtitleFile
Sourcepub fn shift_time(&mut self, offset_ms: i64)
pub fn shift_time(&mut self, offset_ms: i64)
Shifts subtitles
Trait Implementations§
Source§impl Clone for SubtitleFile
impl Clone for SubtitleFile
Source§fn clone(&self) -> SubtitleFile
fn clone(&self) -> SubtitleFile
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 SubtitleFile
impl Debug for SubtitleFile
Source§impl<'de> Deserialize<'de> for SubtitleFile
impl<'de> Deserialize<'de> for SubtitleFile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SubtitleFile
impl PartialEq for SubtitleFile
Source§impl Serialize for SubtitleFile
impl Serialize for SubtitleFile
impl StructuralPartialEq for SubtitleFile
Auto Trait Implementations§
impl Freeze for SubtitleFile
impl RefUnwindSafe for SubtitleFile
impl Send for SubtitleFile
impl Sync for SubtitleFile
impl Unpin for SubtitleFile
impl UnwindSafe for SubtitleFile
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