[][src]Function debcontrol::parse_finish

pub fn parse_finish(input: &str) -> Result<Option<Paragraph>, SyntaxError>

Finish parsing the streaming input and return the final remaining paragraph, if any.

This is the companion function to parse_streaming. Once all input has been read and parse_streaming returns Incomplete, call this function with any remaining input to parse the final remaining paragraph. If the remaining input is only whitespace and comments, None is returned.