pub fn hltas(i: &str) -> Result<(&'_ str, HLTAS), Err<Error<'_>>>
Expand description
Parses an entire HLTAS script, ensuring nothing is left in the input.
This is a lower-level function. You might be looking for HLTAS::from_str
instead.
Examples
let contents = "\
version 1
demo test
frames
------b---|------|------|0.001|-|-|5";
assert!(hltas::read::hltas(contents).is_ok());
let contents = "\
version 1
demo test
frames
------b---|------|------|0.001|-|-|5
something extra in the end";
assert!(hltas::read::hltas(contents).is_err());