header_text in mdman::util - Rust (original) (raw)

mdman::util

Function header_text

Source

pub fn header_text<'e>(
    parser: &mut Box<dyn Iterator<Item = (Event<'e>, Range<usize>)> + 'e>,
) -> Result<CowStr<'e>, Error>

Expand description

Extracts the text from a header after Tag::Heading has been received.