[−][src]Function debcontrol::parse_streaming
pub fn parse_streaming(
input: &str
) -> Result<Streaming<(&str, Paragraph)>, SyntaxError>
Attempt to parse a paragraph from the given input.
This function returns a paragraph and any remaining input if a paragraph can be unambiguously
parsed. If there's no complete paragraph in the input,
Streaming::Incomplete
is returned. In that case,
you need to either:
- read more data from the source and try again or
- if there's no more data in the source, call
parse_finish
with all remaining input.