Skip to main content

parse

Function parse 

Source
fn parse(b: &mut Vec<u8>) -> Parsed
Expand description

One key off the front of b, or Parsed::Need if what is there could still grow into a longer sequence.

Free rather than a method so the tests can drive it with a plain Vec: a Term restores the terminal when it drops, and constructing one in a test sprays escape codes across the test runner’s output.