pub struct SRT {
pub lines: Vec<SRTLine>,
}
Expand description
Contains a Vec<SRTLine>
The .srt
format is relatively simple to parse and generally looks like :
0
00:00:00,000 --> 00:00:02,000
This is my text
1
00:00:02,000 --> 00:00:04,000
This is my second text
Fields§
§lines: Vec<SRTLine>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SRT
impl<'de> Deserialize<'de> for SRT
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
impl Eq for SRT
impl StructuralPartialEq for SRT
Auto Trait Implementations§
impl Freeze for SRT
impl RefUnwindSafe for SRT
impl Send for SRT
impl Sync for SRT
impl Unpin for SRT
impl UnwindSafe for SRT
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