Skip to main content

parse_streaming

Function parse_streaming 

Source
pub fn parse_streaming(
    input: &str,
) -> Result<Streaming<(&str, Paragraph<'_>)>, SyntaxError<'_>>
Expand description

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.