pub fn all_consuming_lines(
    i: &str
) -> Result<(&'_ str, Vec<Line>), Err<Error<'_>>>
Expand description

Parses Lines, ensuring nother is left in the input.

Examples


let lines = "\
------b---|------|------|0.001|-|-|5
------b---|------|------|0.001|-|-|10
";

assert!(hltas::read::all_consuming_lines(lines).is_ok());

let lines = "\
------b---|------|------|0.001|-|-|5
------b---|------|------|0.001|-|-|10
something extra in the end";

assert!(hltas::read::all_consuming_lines(lines).is_err());