glubs/srt
Types
Cue represents a single cue in a srt file.
pub type Cue {
Cue(id: Int, start_time: Int, end_time: Int, payload: String)
}
Constructors
-
Cue(id: Int, start_time: Int, end_time: Int, payload: String)
Functions
pub fn parse(input: String) -> Result(Srt, String)
Parses a Srt string and returns a Result containing the parsed Srt structure or a parsing error.