pub fn to_html(pair: Pair<'_, Rule>) -> Result<String, ErrorParse>Expand description
Converts a pest::iterators::Pair representing a single rule into an HTML string.
§Arguments
pair- Apest::iterators::Pairrepresenting the parsed rule to convert.
§Errors
- Returns an
ErrorParse::ParsingErrorif there’s an error during a parsing process.
§Returns
A result containing either the corresponding HTML string or an ErrorParse if the rule is unknown or an error occurs.