//! Serializer for the WebVTT subtitle format.
use crateResult;
use crateSubtitle;
use format_vtt_time_range;
/// Serialize a [`Subtitle`] into canonical WebVTT bytes.
///
/// The output begins with the `WEBVTT` signature followed by a blank
/// line and one block per entry: a numeric index, the cue timing line,
/// the cue text, and a trailing blank line.
pub