Skip to main content

parse_baseline_line

Function parse_baseline_line 

Source
fn parse_baseline_line(line: &str) -> Option<(String, BaselineEntry)>
Expand description

The one-line, tab-separated format load_baseline reads and write_baseline writes: name\troute_nm\telapsed_ms, one ReferenceRoute per line, blank lines and #-comments ignored.

Hand-rolled rather than reached for a serialisation crate for the same reason hazards::restricts_entry’s own doc gives for reading RESTRN codes as digits instead of JSON: three plain fields split on a tab is not a format worth a dependency to read.