Skip to main content

named_lines

Function named_lines 

Source
pub fn named_lines(source: impl BufRead, rows: &[usize]) -> Result<Vec<Vec<u8>>>
Expand description

The lines rows names (1-based, from the top of the file), in the order rows gives them, each with its line break. Only those lines are held, each up to a bound; a file that ends before the last of them is an error: it has no header there.