Skip to main content

parse_line_of_range_f64

Function parse_line_of_range_f64 

Source
pub fn parse_line_of_range_f64(
    line: &str,
    min: usize,
    max: usize,
    defaults: &[f64],
) -> Result<Vec<f64>, ParseError>
Expand description

Parses a line of whitespace-separated f64 values, accepting between min and max values (inclusive). Returns a vector of exactly max elements, padding with values from defaults when fewer than max are present.

Used for atom lines where column 5 (atom_index) is optional.