rustc_errors::markdown::parse

Function parse_with_end_pat

Source
fn parse_with_end_pat<'a>(
    buf: &'a [u8],
    end_sep: &[u8],
    ignore_esc: bool,
) -> Option<(&'a [u8], &'a [u8])>
Expand description

Find and consume an end pattern, return (match, residual)