Skip to main content

parse_table

Function parse_table 

Source
pub fn parse_table(text: &str) -> Result<Vec<(f64, f64, Option<f64>)>, usize>
Expand description

Rows of a cam table in CSV: master, slave and optionally the slope of the slave over the master, comma separated. A line that does not start with a number (a header, a comment beginning with #, an empty line) is skipped. An error gives the number of the line (from 1) that has a number first and then something that is not one (or is NaN or infinite), or too many fields.